Question: How many non-metropolitan districts whose GSS code (2011) is E07000052 and that contain the settlement Carlisle which is the capital of Cumbria?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" . ?e <GSS_code_(2011)> ?pv . ?pv <pred:value> "E07000052" . ?e <contains_settlement> ?e_1 . ?e_1 <pred:name> "Carlisle" . ?e_1 <capital_of> ?e_2 . ?e_2 <pred:name> "Cumbria" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000052
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Cumbria
function: Relate
dependencies: 3
inputs: capital of
backward
function: Find
inputs: Carlisle
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains settlement
backward
function: FilterConcept
dependencies: 7
inputs: non-metropolitan district
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0