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