Question: Which area's smaller, Canberra (the one whose local dialing code is 0262) or Tampere?
Choices:
Kilkenny
Kingston
Canberra
Chihuahua
Santo Domingo
Bergen
Abidjan
Tampere
Trieste
Dundee
Program:
function: Find
inputs: Canberra
function: FilterStr
dependencies: 0
inputs: local dialing code
0262
function: Find
inputs: Tampere
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Canberra" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "0262" . } UNION { ?e <pred:name> "Tampere" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Canberra