Question: What is the name of the town whose local dialing code is 0161 and whose OS grid reference is SJ895900?
Choices: Royal Tunbridge Wells
Colchester
Wigan
Edmonton
Macclesfield
South Shields
Stockport
Doncaster
Wimbledon
Blackburn
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <local_dialing_code> ?pv . ?pv <pred:value> "0161" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "SJ895900" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
0161
function: FilterConcept
dependencies: 1
inputs: town
function: FindAll
function: FilterStr
dependencies: 3
inputs: OS grid reference
SJ895900
function: FilterConcept
dependencies: 4
inputs: town
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: Stockport