Question: How many non-metro districts comprise an administrative division of North Yorkshire (containing Craven) or contain Pembroke College (the one whose ISNI is 0000 0001 2290 4834) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
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> "Pembroke College" . ?e_1 <ISNI> ?pv . ?pv <pred:value> "0000 0001 2290 4834" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "North Yorkshire" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_2 <pred:name> "Craven" .  } }
Program:
function: Find
inputs: Pembroke College
function: FilterStr
dependencies: 0
inputs: ISNI
0000 0001 2290 4834
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: non-metropolitan district
function: Find
inputs: Craven
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: Find
inputs: North Yorkshire
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 8
inputs: non-metropolitan district
function: Or
dependencies: 3
9
function: Count
dependencies: 10