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