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