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