Question: Who has more kids, voice actor Harrison Ford or John Powell who was nominated for an Academy Award for Best Original Score?
Choices:
Max Fleischer
Paul Simon
Richard Gere
James E. Reilly
David Byrne
Rahul Dev Burman
Harrison Ford
Simon Cowell
Sylvester Stallone
William Henry Harrison
Program:
function: Find
inputs: voice actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Harrison Ford
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: John Powell
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Harrison Ford" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "voice actor" .   } UNION { ?e <pred:name> "John Powell" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Original Score" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Harrison Ford