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