Question: Is the elevation higher for Williamsport or for Reading in Berks County?
Choices:
Wilkes-Barre
Johnstown
Pittsburgh
Greensburg
Bethlehem
Reading
York
Williamsport
Harrisburg
Chester
Answer: Williamsport
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Williamsport" .  } UNION { ?e <pred:name> "Reading" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Berks County" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Williamsport
function: Find
inputs: Berks County
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Reading
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater