Question: Does Waterloo (elevation 269 meters above sea level) or Natchitoches have a smaller population?
Choices:
Columbus
New Haven
Waterloo
Oakland
Lansing
Waukegan
Greenville
Boulder
Natchitoches
Franklin
Program:
function: Find
inputs: Waterloo
function: FilterNum
dependencies: 0
inputs: elevation above sea level
269 metre
=
function: Find
inputs: Natchitoches
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waterloo" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "269"^^xsd:double . } UNION { ?e <pred:name> "Natchitoches" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Natchitoches