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