Question: How many Canadian provinces are administrative divisions of the sovereign state where Sandra Oh has citizenship?
Choices:
7
8
9
10
11
12
13
14
15
16
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_of_citizenship> ?e_1 . ?e_2 <pred:name> "Sandra Oh" .   }
Program:
function: Find
inputs: Sandra Oh
function: Relate
dependencies: 0
inputs: country of citizenship
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