Question: Which town has the TOID 4000000074572881 and the United Kingdom as a country?
Choices:
Royal Tunbridge Wells
Edmonton
Gateshead
Rochdale
Bury
Huddersfield
Wigan
Bridgend
Barnsley
Dumfries
Answer: Barnsley
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <TOID> ?pv . ?pv <pred:value> "4000000074572881" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
4000000074572881
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