Question: What town is the capital of Barrow-in-Furness that is an administrative division of Cumbria and has the TOID 7000000000012941)?
Choices:
Royal Tunbridge Wells
Basingstoke
Macclesfield
Barrow-in-Furness
Colchester
Wimbledon
Blackburn
Wigan
Edmonton
South Shields
Program:
function: Find
inputs: Cumbria
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
forward
function: Find
inputs: Barrow-in-Furness
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
backward
function: FilterConcept
dependencies: 4
inputs: town
function: Find
inputs: Barrow-in-Furness
function: FilterStr
dependencies: 6
inputs: TOID
7000000000012941
function: Relate
dependencies: 7
inputs: capital
forward
function: FilterConcept
dependencies: 8
inputs: town
function: And
dependencies: 5
9
function: What
dependencies: 10
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Barrow-in-Furness" . ?e_2 <contains_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Cumbria" .  ?e_3 <capital> ?e . ?e_3 <pred:name> "Barrow-in-Furness" . ?e_3 <TOID> ?pv . ?pv <pred:value> "7000000000012941" .  }
Answer: Barrow-in-Furness