Question: Does merchant Chris Evans or Helen Hunt have fewer kids?
Choices:
Max Fleischer
Paul Simon
David Byrne
James E. Reilly
William Henry Harrison
Rahul Dev Burman
Helen Hunt
Simon Cowell
Sylvester Stallone
Chris Evans
Program:
function: Find
inputs: merchant
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Chris Evans
function: And
dependencies: 1
2
function: Find
inputs: Helen Hunt
function: SelectBetween
dependencies: 3
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Evans" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "merchant" .   } UNION { ?e <pred:name> "Helen Hunt" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Helen Hunt