Question: Who has fewer children, Adam Smith (the one that is educated at Fordham University) or Mickey Rooney?
Choices:
Sylvester Stallone
Max Fleischer
David Byrne
Richard Gere
Adam Smith
Paul Simon
Simon Cowell
Rahul Dev Burman
Mickey Rooney
James E. Reilly
Program:
function: Find
inputs: Fordham University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Adam Smith
function: And
dependencies: 1
2
function: Find
inputs: Mickey Rooney
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adam Smith" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "Fordham University" .   } UNION { ?e <pred:name> "Mickey Rooney" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Adam Smith