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