Question: Which area is larger, Kelowna or Adelaide (the one whose local dialing code is 08841)?
Choices:
Kilkenny
Kingston
Bergen
Abidjan
Cork
Santo Domingo
Dundee
Chihuahua
Adelaide
Kelowna
Program:
function: Find
inputs: Kelowna
function: Find
inputs: Adelaide
function: FilterStr
dependencies: 1
inputs: local dialing code
08841
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kelowna" . } UNION { ?e <pred:name> "Adelaide" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "08841" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Adelaide