Question: Barrow-in-Furness in Cumbria has which town as its capital?
Choices:
West Bromwich
South Shields
Harrogate
Folkestone
Wigan
Barrow-in-Furness
Macclesfield
Edmonton
Doncaster
Colchester
Answer: Barrow-in-Furness
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_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Cumbria" .   }
Program:
function: Find
inputs: Cumbria
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
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: What
dependencies: 5