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