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