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