Question: Who is shorter, John Wood (the one that died in Oakville) or Ron Howard (the one whose mass is 200 pound)?
Choices: Max Fleischer
David Byrne
Richard Gere
Sylvester Stallone
James E. Reilly
Rahul Dev Burman
John Wood
Paul Simon
Ron Howard
William Henry Harrison
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "John Wood" . ?e <place_of_death> ?e_1 . ?e_1 <pred:name> "Oakville" . } UNION { ?e <pred:name> "Ron Howard" . ?e <mass> ?pv_1 . ?pv_1 <pred:unit> "pound" . ?pv_1 <pred:value> "200"^^xsd:double . } ?e <height> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Oakville
function: Relate
dependencies: 0
inputs: place of death
backward
function: Find
inputs: John Wood
function: And
dependencies: 1
2
function: Find
inputs: Ron Howard
function: FilterNum
dependencies: 4
inputs: mass
200 pound
=
function: SelectBetween
dependencies: 3
5
inputs: height
less
Answer: John Wood