Question: Which one of these has fewer kids, James Buchanan (the one that hold the position President of the United States) or Vera Farmiga ?
Choices:
Max Fleischer
William Henry Harrison
Sylvester Stallone
James E. Reilly
Vera Farmiga
Rahul Dev Burman
Simon Cowell
James Buchanan
Richard Gere
Paul Simon
Answer: James Buchanan
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Buchanan" . ?e <position_held> ?e_1 . ?e_1 <pred:name> "President of the United States" .   } UNION { ?e <pred:name> "Vera Farmiga" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: President of the United States
function: Relate
dependencies: 0
inputs: position held
backward
function: Find
inputs: James Buchanan
function: And
dependencies: 1
2
function: Find
inputs: Vera Farmiga
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater