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