Question: Who has more children, Matthew Bellamy or Peter Jackson (the one that wins BAFTA Award for Best Direction)?
Choices:
William Henry Harrison
Richard Gere
Matthew Bellamy
Simon Cowell
Max Fleischer
Rahul Dev Burman
Peter Jackson
David Byrne
Paul Simon
Sylvester Stallone
Program:
function: Find
inputs: Matthew Bellamy
function: Find
inputs: BAFTA Award for Best Direction
function: Relate
dependencies: 1
inputs: winner
forward
function: Find
inputs: Peter Jackson
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Matthew Bellamy" .  } UNION { ?e <pred:name> "Peter Jackson" . ?e_1 <winner> ?e . ?e_1 <pred:name> "BAFTA Award for Best Direction" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Peter Jackson