Question: The England corresponding to ISO 3166-2 code GB-ENG contains how many ceremonial English counties?
Choices:
17
18
19
20
21
22
23
24
25
26
Answer: 25
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ceremonial county of England" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "England" . ?e_1 <ISO_3166-2_code> ?pv . ?pv <pred:value> "GB-ENG" .   }
Program:
function: Find
inputs: England
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
GB-ENG
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: ceremonial county of England
function: Count
dependencies: 3