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