Question: Which town, with OS grid reference of SS745975, reports 29733 as its WOEID?
Choices:
Colchester
Wimbledon
Neath
Wigan
Doncaster
Royal Tunbridge Wells
Macclesfield
Blackburn
South Shields
Basingstoke
Answer: Neath
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <OS_grid_reference> ?pv . ?pv <pred:value> "SS745975" . ?e <WOEID> ?pv_1 . ?pv_1 <pred:value> "29733" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: OS grid reference
SS745975
function: FilterConcept
dependencies: 1
inputs: town
function: FindAll
function: FilterStr
dependencies: 3
inputs: WOEID
29733
function: FilterConcept
dependencies: 4
inputs: town
function: And
dependencies: 2
5
function: What
dependencies: 6