Question: Where is there a greater elevation above sea level, in Glendale which was founded in 1884 or in Walnut Creek?
Choices:
Columbus
Boulder
Glendale
Oakland
New Haven
Greenville
Waukegan
Compton
Lansing
Walnut Creek
Program:
function: Find
inputs: Glendale
function: FilterYear
dependencies: 0
inputs: inception
1884
=
function: Find
inputs: Walnut Creek
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Glendale" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1884 . } UNION { ?e <pred:name> "Walnut Creek" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Glendale