Question: Which has higher elevation above sea level, Hanover (the one that contains Hannover 96) or Aleppo?
Choices:
Chihuahua
Bergen
Dundee
Hanover
Santo Domingo
Kingston
Aleppo
Trieste
Abidjan
Kilkenny
Program:
function: Find
inputs: Hannover 96
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Hanover
function: And
dependencies: 1
2
function: Find
inputs: Aleppo
function: SelectBetween
dependencies: 3
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hanover" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Hannover 96" .   } UNION { ?e <pred:name> "Aleppo" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Aleppo