Question: Which area has higher elevation above sea level, Pittsburgh (the one that contains Carnegie Mellon University) or Erie?
Choices:
Harrisburg
Johnstown
Chester
Pittsburgh
Easton
York
Philadelphia
Greensburg
Wilkes-Barre
Bethlehem
Answer: Pittsburgh
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pittsburgh" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Carnegie Mellon University" .   } UNION { ?e <pred:name> "Erie" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Carnegie Mellon University
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Pittsburgh
function: And
dependencies: 1
2
function: Find
inputs: Erie
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater