Question: Does Logan, population 48174, or Colorado Springs have the lower elevation?
Choices:
Colorado Springs
Columbus
Boulder
Greenville
Lansing
Logan
New Haven
Compton
Oakland
Waukegan
Program:
function: Find
inputs: Logan
function: FilterNum
dependencies: 0
inputs: population
48174
=
function: Find
inputs: Colorado Springs
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Logan" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "48174"^^xsd:double . } UNION { ?e <pred:name> "Colorado Springs" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Logan