Question: What is the name of the town whose OS grid reference is TQ145885 and whose country is United Kingdom?
Choices:
Royal Tunbridge Wells
Dumfries
Dover
Wigan
Harrow
Greenock
South Shields
Kirkcaldy
Dunfermline
Luton
Answer: Harrow
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <OS_grid_reference> ?pv . ?pv <pred:value> "TQ145885" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: OS grid reference
TQ145885
function: FilterConcept
dependencies: 1
inputs: town
function: Find
inputs: United Kingdom
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: town
function: And
dependencies: 2
5
function: What
dependencies: 6