Question: Which place has less of an elevation above sea level, Syracuse in Onondaga County or Glen Cove?
Choices:
Long Beach
Syracuse
Ithaca
Auburn
White Plains
Yonkers
Glens Falls
Elmira
Utica
Glen Cove
Program:
function: Find
inputs: Onondaga County
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Syracuse
function: And
dependencies: 1
2
function: Find
inputs: Glen Cove
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Syracuse" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Onondaga County" .   } UNION { ?e <pred:name> "Glen Cove" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Glen Cove