Question: What is the number of provinces of Canada that are an administrative division of the sovereign state that is the nation of the Senate of Canada?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Senate of Canada" .   }
Program:
function: Find
inputs: Senate of Canada
function: Relate
dependencies: 0
inputs: country
forward
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 3
inputs: province of Canada
function: Count
dependencies: 4