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