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