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