Question: Which local telephone code applies to the town whose OS grid reference is TL997254?
Choices: 08704
507
07346
08822
01206
908
452
604
151
08642
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "TL997254" . ?e <local_dialing_code> ?pv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: OS grid reference
TL997254
function: FilterConcept
dependencies: 1
inputs: town
function: QueryAttr
dependencies: 2
inputs: local dialing code
Answer: 01206