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