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