Question: Does Jimmy Carter (the one whose ISNI is 0000 0003 6960 3101) or Jon Favreau (the one that is a cast member of Deep Impact) have the greater number of children?
Choices:
Paul Simon
Sylvester Stallone
Rahul Dev Burman
James E. Reilly
Jimmy Carter
Max Fleischer
Simon Cowell
Richard Gere
David Byrne
William Henry Harrison
Answer: Jimmy Carter
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jimmy Carter" . ?e <ISNI> ?pv_1 . ?pv_1 <pred:value> "0000 0003 6960 3101" . } UNION { ?e <pred:name> "Jon Favreau" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Deep Impact" . } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Jimmy Carter
function: FilterStr
dependencies: 0
inputs: ISNI
0000 0003 6960 3101
function: Find
inputs: Deep Impact
function: Relate
dependencies: 2
inputs: cast member
forward
function: Find
inputs: Jon Favreau
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of children
greater