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