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