Question: Who has fewer children, Franklin Delano Roosevelt or James Madison (the one that uses the language Hebrew)?
Choices: Richard Gere
James E. Reilly
Sylvester Stallone
Simon Cowell
David Byrne
Paul Simon
Max Fleischer
James Madison
William Henry Harrison
Franklin Delano Roosevelt
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Franklin Delano Roosevelt" .  } UNION { ?e <pred:name> "James Madison" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "Hebrew" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Franklin Delano Roosevelt
function: Find
inputs: Hebrew
function: Relate
dependencies: 1
inputs: languages spoken, written or signed
backward
function: Find
inputs: James Madison
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
Answer: James Madison