Question: Does John Powell, who was nominated for Academy Award for Best Original Score, or Gillian Anderson have a greater number of children?
Choices:
Richard Gere
Sylvester Stallone
Gillian Anderson
William Henry Harrison
David Byrne
John Powell
Simon Cowell
Max Fleischer
Rahul Dev Burman
Paul Simon
Program:
function: Find
inputs: Academy Award for Best Original Score
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: John Powell
function: And
dependencies: 1
2
function: Find
inputs: Gillian Anderson
function: SelectBetween
dependencies: 3
4
inputs: number of children
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Powell" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Original Score" .   } UNION { ?e <pred:name> "Gillian Anderson" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gillian Anderson