Question: Which has higher elevation above sea level, Nicosia or Bucharest?
Choices:
Manila
Bucharest
Lausanne
Riga
Sarajevo
Tallinn
Doha
Mexico City
Nicosia
New Delhi
Program:
function: Find
inputs: Nicosia
function: Find
inputs: Bucharest
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nicosia" .  } UNION { ?e <pred:name> "Bucharest" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nicosia