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