Question: I want to know the one with the larger elevation (over sea level), Baku or Ottawa.
Choices:
Lausanne
Manila
Tallinn
Baku
Moscow
Riga
Doha
Mexico City
New Delhi
Ottawa
Program:
function: Find
inputs: Baku
function: Find
inputs: Ottawa
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Baku" .  } UNION { ?e <pred:name> "Ottawa" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ottawa