Question: Which town is the capital of a metropolitan borough whose GSS code (2011) is E08000002 ?
Choices:
Stockport
Wigan
Rochdale
South Shields
Walsall
Bury
Hamilton
Colchester
Huddersfield
Royal Tunbridge Wells
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E08000002
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: Relate
dependencies: 2
inputs: capital
forward
function: FilterConcept
dependencies: 3
inputs: town
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "metropolitan borough" . ?e_1 <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E08000002" .   }
Answer: Bury