Question: Which area has higher elevation above sea level, Ithaca (the one whose inception time is 1888) or Glen Cove?
Choices:
Glen Cove
Elmira
Long Beach
White Plains
Utica
Syracuse
Auburn
Ithaca
Yonkers
Glens Falls
Program:
function: Find
inputs: Ithaca
function: FilterYear
dependencies: 0
inputs: inception
1888
=
function: Find
inputs: Glen Cove
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ithaca" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1888 . } UNION { ?e <pred:name> "Glen Cove" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ithaca