Question: Which area has lower elevation above sea level?
Choices:
New Delhi
Doha
Cape Town
Moscow
Manila
Lausanne
Riga
Kiev
Tallinn
Sarajevo
Program:
function: Find
inputs: Kiev
function: Find
inputs: Cape Town
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kiev" .  } UNION { ?e <pred:name> "Cape Town" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Kiev