Question: Which one has between David Lynch and John Adams (the one that was the head of government of the United States of America) had fewer children?
Choices:
Simon Cowell
Richard Gere
William Henry Harrison
John Adams
James E. Reilly
David Byrne
Paul Simon
Max Fleischer
Rahul Dev Burman
David Lynch
Answer: David Lynch
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "David Lynch" .  } UNION { ?e <pred:name> "John Adams" . ?e_1 <head_of_government> ?e . ?e_1 <pred:name> "United States of America" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: David Lynch
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: head of government
forward
function: Find
inputs: John Adams
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less