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