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