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
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
Program:
function: Find
inputs: Baku
function: Find
inputs: Ottawa
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
Answer: Ottawa