Question: What is the OS grid reference for the town whose local dialing code is 01387?
Choices:
SD922053
TQ765555
SJ491124
TQ395775
SP1955
SD685277
NX976762
TA279087
NT105875
SE163329
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
01387
function: FilterConcept
dependencies: 1
inputs: town
function: QueryAttr
dependencies: 2
inputs: OS grid reference
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01387" . ?e <OS_grid_reference> ?pv .  }
Answer: NX976762