Question: What is the local dialing code of the capital of Preston (the one whose population is 141300)?
Choices:
221
01772
078
01744
01524
+298
08635
01625
320
034907
Answer: 01772
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Preston" . ?e_1 <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "141300"^^xsd:double . ?e <local_dialing_code> ?pv .  }
Program:
function: Find
inputs: Preston
function: FilterNum
dependencies: 0
inputs: population
141300
=
function: Relate
dependencies: 1
inputs: capital of
backward
function: FilterConcept
dependencies: 2
inputs: city
function: QueryAttr
dependencies: 3
inputs: local dialing code