Question: Which one is smaller by area, Las Cruces or Charleston (the one whose elevation (above sea level) is 597 feet) ?
Choices:
Waukegan
New Haven
Columbus
Lansing
Oakland
Greenville
Charleston
Las Cruces
Boulder
Franklin
Program:
function: Find
inputs: Las Cruces
function: Find
inputs: Charleston
function: FilterNum
dependencies: 1
inputs: elevation above sea level
597 foot
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Las Cruces" . } UNION { ?e <pred:name> "Charleston" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "foot" . ?pv_1 <pred:value> "597"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Charleston