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