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