Question: How many English ceremonial counties contain Stockton-on-tees  (the one whose FIPS 10-4 (countries and regions) is UKN3) or report GB-NBL as their ISO 3166-2 code ?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" .  { ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Stockton-on-Tees" . ?e_1 <FIPS_10-4_(countries_and_regions)> ?pv . ?pv <pred:value> "UKN3" .  } UNION { ?e <ISO_3166-2_code> ?pv . ?pv <pred:value> "GB-NBL" .  } }
Program:
function: Find
inputs: Stockton-on-Tees
function: FilterStr
dependencies: 0
inputs: FIPS 10-4 (countries and regions)
UKN3
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: FindAll
function: FilterStr
dependencies: 4
inputs: ISO 3166-2 code
GB-NBL
function: FilterConcept
dependencies: 5
inputs: ceremonial county of England
function: Or
dependencies: 3
6
function: Count
dependencies: 7