Question: How many first-level administrative country subdivisions share a border with the province of Italy that abuts Tyrol (that shares a boundary with South Tyrol)?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "first-level administrative country subdivision" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "province of Italy" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "Tyrol" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "South Tyrol" .   }
Program:
function: Find
inputs: South Tyrol
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Tyrol
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: province of Italy
function: Relate
dependencies: 5
inputs: shares border with
backward
function: FilterConcept
dependencies: 6
inputs: first-level administrative country subdivision
function: Count
dependencies: 7
Answer: 2