Question: Which one of  Niagara Falls (the one whose elevation (above sea level) is 187 metre) and Athens (the one that is the residence of Michael Stipe)  has lower elevation (above sea level)?
Choices:
Lansing
Greenville
New Haven
Columbus
Compton
Oakland
Niagara Falls
Franklin
Waukegan
Athens
Program:
function: Find
inputs: Niagara Falls
function: FilterNum
dependencies: 0
inputs: elevation above sea level
187 metre
=
function: Find
inputs: Michael Stipe
function: Relate
dependencies: 2
inputs: residence
forward
function: Find
inputs: Athens
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Niagara Falls" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "187"^^xsd:double . } UNION { ?e <pred:name> "Athens" . ?e_1 <residence> ?e . ?e_1 <pred:name> "Michael Stipe" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Niagara Falls