Question: Which has more population, Wilkes-Barre or Chester whose elevation above sea level is 21 metres?
Choices:
York
Pittsburgh
Harrisburg
Chester
Johnstown
Greensburg
Bethlehem
Philadelphia
Wilkes-Barre
Easton
Program:
function: Find
inputs: Wilkes-Barre
function: Find
inputs: Chester
function: FilterNum
dependencies: 1
inputs: elevation above sea level
21 metre
=
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wilkes-Barre" . } UNION { ?e <pred:name> "Chester" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "21"^^xsd:double . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Wilkes-Barre