Question: What is the TOID of the town whose OS grid reference is TQ445865?
Choices:
4000000074558539
4000000074551822
4000000074572822
4000000074579136
4000000074572540
7000000000019687
4000000074580402
4000000074551100
4000000074553344
4000000074550040
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: OS grid reference
TQ445865
function: FilterConcept
dependencies: 1
inputs: town
function: QueryAttr
dependencies: 2
inputs: TOID
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <OS_grid_reference> ?pv_1 . ?pv_1 <pred:value> "TQ445865" . ?e <TOID> ?pv .  }
Answer: 4000000074579136