Question: Which has lower elevation above sea level, The Hague or Kiel?
Choices:
Lyon
Utrecht
Aachen
Halle (Saale)
Kiel
The Hague
Bordeaux
Stuttgart
Fort Smith
Dnipro
Program:
function: Find
inputs: The Hague
function: Find
inputs: Kiel
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Hague" .  } UNION { ?e <pred:name> "Kiel" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Hague