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