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