Question: What number of ceremonial English counties are either West Midlands administrative divisions containing the admin division of Staffordshire or have a GSS code (2011) of E10000032?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" .  { ?e <GSS_code_(2011)> ?pv . ?pv <pred:value> "E10000032" .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "West Midlands" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Staffordshire" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E10000032
function: FilterConcept
dependencies: 1
inputs: ceremonial county of England
function: Find
inputs: Staffordshire
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: Find
inputs: West Midlands
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: ceremonial county of England
function: Or
dependencies: 2
8
function: Count
dependencies: 9