Question: How many non-metropolitan districts there are whose GSS code (2011) is E07000028 or that contains Woking (the one whose postal code is GU21, GU22) ?
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 <GSS_code_(2011)> ?pv . ?pv <pred:value> "E07000028" .  } UNION { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Woking" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "GU21, GU22" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E07000028
function: FilterConcept
dependencies: 1
inputs: non-metropolitan district
function: Find
inputs: Woking
function: FilterStr
dependencies: 3
inputs: postal code
GU21, GU22
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 5
inputs: non-metropolitan district
function: Or
dependencies: 2
6
function: Count
dependencies: 7