Question: Who has more children, Andrew Jackson (the one that has the occupation of military officer) or Carson Daly?
Choices:
Paul Simon
Andrew Jackson
David Byrne
William Henry Harrison
Simon Cowell
Carson Daly
Max Fleischer
Rahul Dev Burman
Sylvester Stallone
James E. Reilly
Answer: Andrew Jackson
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Andrew Jackson" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "military officer" .   } UNION { ?e <pred:name> "Carson Daly" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: military officer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Andrew Jackson
function: And
dependencies: 1
2
function: Find
inputs: Carson Daly
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater