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