Question: How many Michigan counties are located in the state of the United States containing the administrative division St. Clair County (that holds the administrative division Port Huron)?
Choices:
12
13
14
15
16
17
18
19
20
21
Answer: 16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Michigan" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "St. Clair County" . ?e_2 <contains_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Port Huron" .   }
Program:
function: Find
inputs: Port Huron
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: St. Clair County
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: state of the United States
function: Relate
dependencies: 5
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 6
inputs: county of Michigan
function: Count
dependencies: 7