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