Question: Who weighs less, Ted Kennedy (the one that died from heart failure) or Tim Armstrong (the one whose mass is 168 pound)?
Choices:
Sylvester Stallone
Tim Armstrong
David Byrne
Paul Simon
William Henry Harrison
Richard Gere
Rahul Dev Burman
James E. Reilly
Max Fleischer
Simon Cowell
Answer: Tim Armstrong
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ted Kennedy" . ?e <cause_of_death> ?e_1 . ?e_1 <pred:name> "heart failure" . } UNION { ?e <pred:name> "Tim Armstrong" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "168"^^xsd:double . } ?e <mass> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: heart failure
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: Ted Kennedy
function: And
dependencies: 1
2
function: Find
inputs: Tim Armstrong
function: FilterNum
dependencies: 4
inputs: mass
168 pound
=
function: SelectBetween
dependencies: 3
5
inputs: mass
less