Question: Does Kamloops or Oslo have greater elevation above sea level?
Choices:
Dundee
Abidjan
Cork
Kingston
Kilkenny
Kamloops
Santo Domingo
Oslo
Bergen
Trieste
Program:
function: Find
inputs: Kamloops
function: Find
inputs: Oslo
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kamloops" .  } UNION { ?e <pred:name> "Oslo" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kamloops