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