Question: How many Canadian provinces are there with an ethnic group that is geographically distributed in New Brunswick (bordering Prince Edward Island) ?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Prince Edward Island
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: New Brunswick
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: geographic distribution
backward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Relate
dependencies: 5
inputs: geographic distribution
forward
function: FilterConcept
dependencies: 6
inputs: province of Canada
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e_1 <geographic_distribution> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "ethnic group" . ?e_1 <geographic_distribution> ?e_2 . ?e_2 <pred:name> "New Brunswick" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Prince Edward Island" .   }
Answer: 3