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