Question: How many towns are the capital of Blackpool (the one whose GSS code (2011) is E06000009)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e_1 <capital> ?e . ?e_1 <pred:name> "Blackpool" . ?e_1 <GSS_code_(2011)> ?pv . ?pv <pred:value> "E06000009" .   }
Program:
function: Find
inputs: Blackpool
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E06000009
function: Relate
dependencies: 1
inputs: capital
forward
function: FilterConcept
dependencies: 2
inputs: town
function: Count
dependencies: 3
Answer: 1