Question: Does Adelaide (whose local area code is 08720) or Bulawayo have the higher elevation above sea level?
Choices:
Kilkenny
Abidjan
Santo Domingo
Bulawayo
Dundee
Trieste
Bergen
Chihuahua
Kingston
Cork
Answer: Bulawayo
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Adelaide" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "08720" . } UNION { ?e <pred:name> "Bulawayo" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Adelaide
function: FilterStr
dependencies: 0
inputs: local dialing code
08720
function: Find
inputs: Bulawayo
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater