Question: What is the name of the town whose county is the UK and has the TOID of 4000000074551570?
Choices:
South Shields
Scarborough
Stepney
Marylebone
Wigan
Doncaster
Edmonton
Colchester
Burton upon Trent
Royal Tunbridge Wells
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: TOID
4000000074551570
function: FilterConcept
dependencies: 4
inputs: town
function: And
dependencies: 2
5
function: What
dependencies: 6
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 <TOID> ?pv . ?pv <pred:value> "4000000074551570" .  }
Answer: South Shields