Question: For the town that is John Wells' (the one that was born in Ashford) birthplace, what is its local-dialing code?
Choices: 01789
01233
07346
843
07387
872
01483
1895
0240
+598
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "John Wells" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Ashford" .  ?e <local_dialing_code> ?pv .  }
Program:
function: Find
inputs: Ashford
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: John Wells
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: town
function: QueryAttr
dependencies: 5
inputs: local dialing code
Answer: 01233