Question: Does Richard Nixon or John Quincy Adams have more children who knows Latin?
Choices: Sylvester Stallone
James E. Reilly
Richard Gere
William Henry Harrison
Paul Simon
Simon Cowell
Richard Nixon
Rahul Dev Burman
Max Fleischer
John Quincy Adams
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Richard Nixon" .  } UNION { ?e <pred:name> "John Quincy Adams" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "Latin" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Richard Nixon
function: Find
inputs: Latin
function: Relate
dependencies: 1
inputs: languages spoken, written or signed
backward
function: Find
inputs: John Quincy Adams
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
Answer: John Quincy Adams