Question: Is the elevation higher in Reading, founded in 1748, or Lancaster, founded in 1730?
Choices:
Pittsburgh
Reading
Wilkes-Barre
Bethlehem
Harrisburg
Philadelphia
Johnstown
Greensburg
Lancaster
Chester
Answer: Lancaster
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Reading" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1748 . } UNION { ?e <pred:name> "Lancaster" . ?e <inception> ?pv_2 . ?pv_2 <pred:year> 1730 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Reading
function: FilterYear
dependencies: 0
inputs: inception
1748
=
function: Find
inputs: Lancaster
function: FilterYear
dependencies: 2
inputs: inception
1730
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater