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