Question: Which town corresponding to TOID 4000000074549970 is the capital of Woking, whose GSS code (2011) is E07000217?
Choices: Edmonton
Royal Tunbridge Wells
Colchester
Wigan
Blackburn
Woking
Macclesfield
Basingstoke
South Shields
Doncaster
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <TOID> ?pv . ?pv <pred:value> "4000000074549970" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Woking" . ?e_1 <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E07000217" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
4000000074549970
function: FilterConcept
dependencies: 1
inputs: town
function: Find
inputs: Woking
function: FilterStr
dependencies: 3
inputs: GSS code (2011)
E07000217
function: Relate
dependencies: 4
inputs: capital
forward
function: FilterConcept
dependencies: 5
inputs: town
function: And
dependencies: 2
6
function: What
dependencies: 7
Answer: Woking