Question: How many Italian regions are there that contain the administrative Italian division-province located in Sardinia (the one whose ISO 3166-2 code is IT-88) ?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "region of Italy" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "province of Italy" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Sardinia" . ?e_2 <ISO_3166-2_code> ?pv . ?pv <pred:value> "IT-88" .   }
Program:
function: Find
inputs: Sardinia
function: FilterStr
dependencies: 0
inputs: ISO 3166-2 code
IT-88
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 2
inputs: province of Italy
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: region of Italy
function: Count
dependencies: 5