Question: How many non-metropolitan districts surround the Barrow-in-Furness (located in Cumbria) enclave or are in country of United Kingdom?
Choices:
10
11
12
13
14
15
16
17
18
19
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: enclave within
forward
function: FilterConcept
dependencies: 4
inputs: non-metropolitan district
function: Find
inputs: United Kingdom
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: non-metropolitan district
function: Or
dependencies: 5
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" .  { ?e_1 <enclave_within> ?e . ?e_1 <pred:name> "Barrow-in-Furness" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Cumbria" .  } UNION { ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } }
Answer: 17