Question: Who has more children, James L. Brooks or Elizabeth Banks (the one that has the occupation of screenwriter)?
Choices: Sylvester Stallone
James E. Reilly
William Henry Harrison
Paul Simon
Elizabeth Banks
Richard Gere
David Byrne
Max Fleischer
James L. Brooks
Rahul Dev Burman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "James L. Brooks" .  } UNION { ?e <pred:name> "Elizabeth Banks" . ?e <occupation> ?e_1 . ?e_1 <pred:name> "screenwriter" .   } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: James L. Brooks
function: Find
inputs: screenwriter
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Elizabeth Banks
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of children
greater
Answer: James L. Brooks