Question: Who has more children, Mark Williams (the one that wins Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture) or Jon Favreau (the one that has the occupation of screenwriter)?
Choices: Simon Cowell
Richard Gere
Max Fleischer
Paul Simon
David Byrne
James E. Reilly
Jon Favreau
Mark Williams
Rahul Dev Burman
Sylvester Stallone
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mark Williams" . ?e_1 <winner> ?e . ?e_1 <pred:name> "Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture" .   } UNION { ?e <pred:name> "Jon Favreau" . ?e <occupation> ?e_2 . ?e_2 <pred:name> "screenwriter" .  } ?e <number_of_children> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
function: Relate
dependencies: 0
inputs: winner
forward
function: Find
inputs: Mark Williams
function: And
dependencies: 1
2
function: Find
inputs: screenwriter
function: Relate
dependencies: 4
inputs: occupation
backward
function: Find
inputs: Jon Favreau
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: number of children
greater
Answer: Jon Favreau