Question: Who has fewer children, Geoffrey Rush or actor Chris Brown?
Choices:
Simon Cowell
Paul Simon
James E. Reilly
Richard Gere
Rahul Dev Burman
Chris Brown
Max Fleischer
Geoffrey Rush
David Byrne
Sylvester Stallone
Program:
function: Find
inputs: Geoffrey Rush
function: Find
inputs: actor
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Chris Brown
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Geoffrey Rush" .  } UNION { ?e <pred:name> "Chris Brown" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "actor" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chris Brown