Question: How many metro boroughs are located in West Midlands (the one whose GSS code (2011) is E11000005) ?
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> "metropolitan borough" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "West Midlands" . ?e_1 <GSS_code_(2011)> ?pv . ?pv <pred:value> "E11000005" .   }
Program:
function: Find
inputs: West Midlands
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E11000005
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: metropolitan borough
function: Count
dependencies: 3