Question: Which town has a TOID of 4000000074573917 and has an OS grid reference of SP8778?
Choices:
Wigan
Doncaster
Royal Tunbridge Wells
Kettering
Edmonton
Macclesfield
Blackburn
Colchester
South Shields
Wimbledon
Answer: Kettering
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <TOID> ?pv . ?pv <pred:value> "4000000074573917" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "SP8778" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
4000000074573917
function: FilterConcept
dependencies: 1
inputs: town
function: FindAll
function: FilterStr
dependencies: 3
inputs: OS grid reference
SP8778
function: FilterConcept
dependencies: 4
inputs: town
function: And
dependencies: 2
5
function: What
dependencies: 6