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