Question: Which one's elevation is greater above sea level, Essen or The Hague?
Choices:
Stuttgart
Essen
Bordeaux
Utrecht
Halle (Saale)
Wuppertal
The Hague
Lyon
Dnipro
Aachen
Program:
function: Find
inputs: Essen
function: Find
inputs: The Hague
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Essen" .  } UNION { ?e <pred:name> "The Hague" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Essen