Question: Does James Buchanan, whose native language is English, or Lorraine Bracco have fewer kids?
Choices:
Max Fleischer
David Byrne
Lorraine Bracco
Simon Cowell
Richard Gere
William Henry Harrison
James Buchanan
Rahul Dev Burman
Sylvester Stallone
Paul Simon
Program:
function: Find
inputs: English
function: Relate
dependencies: 0
inputs: native language
backward
function: Find
inputs: James Buchanan
function: And
dependencies: 1
2
function: Find
inputs: Lorraine Bracco
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James Buchanan" . ?e <native_language> ?e_1 . ?e_1 <pred:name> "English" .   } UNION { ?e <pred:name> "Lorraine Bracco" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lorraine Bracco