Question: Who is shorter, Chris Cooper who attended the University of New Mexico or John Adams who died from heart failure?
Choices:
Max Fleischer
David Byrne
John Adams
Richard Gere
Chris Cooper
Rahul Dev Burman
James E. Reilly
Paul Simon
William Henry Harrison
Sylvester Stallone
Answer: John Adams
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chris Cooper" . ?e <educated_at> ?e_1 . ?e_1 <pred:name> "University of New Mexico" .   } UNION { ?e <pred:name> "John Adams" . ?e <cause_of_death> ?e_2 . ?e_2 <pred:name> "heart failure" .  } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: University of New Mexico
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Chris Cooper
function: And
dependencies: 1
2
function: Find
inputs: heart failure
function: Relate
dependencies: 4
inputs: cause of death
backward
function: Find
inputs: John Adams
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: height
less