Question: Which area has lower elevation above sea level, Duluth or Midland (the one whose elevation (above sea level) is 848 metre)?
Choices:
New Haven
Oakland
Lansing
Greenville
Compton
Midland
Boulder
Franklin
Waukegan
Columbus
Answer: Midland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Duluth" . } UNION { ?e <pred:name> "Midland" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "848"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Duluth
function: Find
inputs: Midland
function: FilterNum
dependencies: 1
inputs: elevation above sea level
848 metre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater