Question: What is the number of administrative territorial Canadian entities that have country Canada or that is replaced by Manitoba
Choices: 3
4
5
6
7
8
9
10
11
12
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity of Canada" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "Canada" .  } UNION { ?e_1 <replaces> ?e . ?e_1 <pred:name> "Manitoba" .  } }
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country
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: 5