Question: How many of Canada's administrative territorial entities share a border with Newfoundland and Labrador or were replaced by Manitoba?
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> "administrative territorial entity of Canada" .  { ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Newfoundland and Labrador" .  } UNION { ?e_1 <replaces> ?e . ?e_1 <pred:name> "Manitoba" .  } }
Program:
function: Find
inputs: Newfoundland and Labrador
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity of Canada
function: Find
inputs: Manitoba
function: Relate
dependencies: 3
inputs: replaces
forward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity of Canada
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2