Question: How many non-metropolitan districts contain Barrow-in-Furness (whose TOID is 4000000074560818) or have an establishment date that is after 1974?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "non-metropolitan district" .  { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Barrow-in-Furness" . ?e_1 <TOID> ?pv . ?pv <pred:value> "4000000074560818" .  } UNION { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1974 ) .  } }
Program:
function: Find
inputs: Barrow-in-Furness
function: FilterStr
dependencies: 0
inputs: TOID
4000000074560818
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
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