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