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