Question: Which one has fewer children between Jack Black and John Quincy Adams (the one that speaks French)?
Choices:
James E. Reilly
David Byrne
Sylvester Stallone
Simon Cowell
Jack Black
Max Fleischer
Richard Gere
Rahul Dev Burman
Paul Simon
John Quincy Adams
Program:
function: Find
inputs: Jack Black
function: Find
inputs: French
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
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Jack Black" .  } UNION { ?e <pred:name> "John Quincy Adams" . ?e <languages_spoken,_written_or_signed> ?e_1 . ?e_1 <pred:name> "French" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Jack Black