Question: Who has fewer kids, Dan Stevens or John Powell who is a performer of The Bourne Supremacy?
Choices:
Rahul Dev Burman
Paul Simon
Richard Gere
William Henry Harrison
Max Fleischer
John Powell
James E. Reilly
Sylvester Stallone
Dan Stevens
David Byrne
Program:
function: Find
inputs: Dan Stevens
function: Find
inputs: The Bourne Supremacy
function: Relate
dependencies: 1
inputs: performer
forward
function: Find
inputs: John Powell
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dan Stevens" .  } UNION { ?e <pred:name> "John Powell" . ?e_1 <performer> ?e . ?e_1 <pred:name> "The Bourne Supremacy" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: John Powell