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