Question: Does the actor Michael Dobson have more kids, or does J. J. Abrams?
Choices:
Michael Dobson
David Byrne
J. J. Abrams
Simon Cowell
Paul Simon
Max Fleischer
James E. Reilly
William Henry Harrison
Rahul Dev Burman
Sylvester Stallone
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Michael Dobson
function: And
dependencies: 1
2
function: Find
inputs: J. J. Abrams
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Michael Dobson" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "actor" .   } UNION { ?e <pred:name> "J. J. Abrams" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Michael Dobson