Question: What town in the United Kingdom has an OS grid reference of TQ510887?
Choices:
Macclesfield
Falkirk
Dewsbury
Royal Tunbridge Wells
Burton upon Trent
Stockport
Romford
South Shields
Wigan
Worthing
Answer: Romford
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  ?e <OS_grid_reference> ?pv . ?pv <pred:value> "TQ510887" .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: town
function: FindAll
function: FilterStr
dependencies: 3
inputs: OS grid reference
TQ510887
function: FilterConcept
dependencies: 4
inputs: town
function: And
dependencies: 2
5
function: What
dependencies: 6