Question: How many non-metro districts make up the enclave with Preston (the one whose GSS code (2011) is E07000123 or were founded after 1974 ?
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 <enclave_within> ?e_1 . ?e_1 <pred:name> "Preston" . ?e_1 <GSS_code_(2011)> ?pv . ?pv <pred:value> "E07000123" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1974 ) .  } }
Program:
function: Find
inputs: Preston
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000123
function: Relate
dependencies: 1
inputs: enclave within
backward
function: FilterConcept
dependencies: 2
inputs: non-metropolitan district
function: FindAll
function: FilterYear
dependencies: 4
inputs: inception
1974
>
function: FilterConcept
dependencies: 5
inputs: non-metropolitan district
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 0