Question: Which has higher elevation above sea level, Longview (the one whose inception time is 1871-01-01) or Santa Barbara (the one whose inception time is 1847)?
Choices:
Greenville
Boulder
Compton
Lansing
Longview
Franklin
Oakland
Waukegan
Columbus
New Haven
Answer: Longview
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Longview" . ?e <inception> ?pv_1 . ?pv_1 <pred:date> "1871-01-01"^^xsd:date . } UNION { ?e <pred:name> "Santa Barbara" . ?e <inception> ?pv_2 . ?pv_2 <pred:year> 1847 . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Longview
function: FilterDate
dependencies: 0
inputs: inception
1871-01-01
=
function: Find
inputs: Santa Barbara
function: FilterYear
dependencies: 2
inputs: inception
1847
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater