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
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
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
Answer: Charles Bronson