Question: Who has fewer children, President of the United States Donald Trump or Nigel Lythgoe?
Choices: Sylvester Stallone
Rahul Dev Burman
Paul Simon
William Henry Harrison
Simon Cowell
Richard Gere
Nigel Lythgoe
James E. Reilly
David Byrne
Max Fleischer
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Donald Trump" . ?e_1 <officeholder> ?e . ?e_1 <pred:name> "President of the United States" .   } UNION { ?e <pred:name> "Nigel Lythgoe" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: President of the United States
function: Relate
dependencies: 0
inputs: officeholder
forward
function: Find
inputs: Donald Trump
function: And
dependencies: 1
2
function: Find
inputs: Nigel Lythgoe
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
Answer: Nigel Lythgoe