Question: Who has more kids, Peter Jackson who received an Academy Award for Best Picture or Chris Cornell?
Choices:
Max Fleischer
Chris Cornell
Peter Jackson
Simon Cowell
Richard Gere
Paul Simon
William Henry Harrison
Rahul Dev Burman
David Byrne
James E. Reilly
Program:
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Peter Jackson
function: And
dependencies: 1
2
function: Find
inputs: Chris Cornell
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Peter Jackson" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Picture" .   } UNION { ?e <pred:name> "Chris Cornell" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chris Cornell