Question: Which has greater elevation above sea level, Syracuse that is the capital of Onondaga County or Elmira?
Choices:
White Plains
Glens Falls
Yonkers
Troy
Elmira
Auburn
Ithaca
Syracuse
Long Beach
Utica
Answer: Elmira
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Syracuse" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Onondaga County" .   } UNION { ?e <pred:name> "Elmira" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Onondaga County
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Syracuse
function: And
dependencies: 1
2
function: Find
inputs: Elmira
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater