Question: Does Pittsburgh (zip code 15215) or Chester (population 33972) have the lower elevation relative to sea level?
Choices: Johnstown
Chester
Erie
Pittsburgh
York
Bethlehem
Easton
Harrisburg
Greensburg
Philadelphia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pittsburgh" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "15215" . } UNION { ?e <pred:name> "Chester" . ?e <population> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "33972"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Pittsburgh
function: FilterStr
dependencies: 0
inputs: postal code
15215
function: Find
inputs: Chester
function: FilterNum
dependencies: 2
inputs: population
33972
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
less
Answer: Chester