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