Question: Does Tirana or the Nuremberg that borders Erlangen have the higher elevation relative to sea level?
Choices:
Chihuahua
Trieste
Cork
Dundee
Kilkenny
Abidjan
Santo Domingo
Bergen
Kingston
Nuremberg
Answer: Nuremberg
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Tirana" .  } UNION { ?e <pred:name> "Nuremberg" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Erlangen" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Tirana
function: Find
inputs: Erlangen
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Nuremberg
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater