Question: Does Kiel or Saint Petersburg have the higher elevation?
Choices:
Kiel
Stuttgart
Bordeaux
Lyon
Saint Petersburg
Wuppertal
Dnipro
Halle (Saale)
Aachen
Fort Smith
Program:
function: Find
inputs: Kiel
function: Find
inputs: Saint Petersburg
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kiel" .  } UNION { ?e <pred:name> "Saint Petersburg" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kiel