Question: What is the OS grid reference of the town with the local dialing code 0141?
Choices:
SY5785299047
NS325395
TQ295795
TQ305785
NS485635
TQ355814
ST745645
NT275915
TQ765659
SE5702
Answer: NS485635
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "0141" . ?e <OS_grid_reference> ?pv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
0141
function: FilterConcept
dependencies: 1
inputs: town
function: QueryAttr
dependencies: 2
inputs: OS grid reference