Question: How many counties of Pennsylvania comprise the administrative division of the US State containing the administrative division Mercer County (bordering Mahoning County) ?
Choices:
37
38
39
40
41
42
43
44
45
46
Program:
function: Find
inputs: Mahoning County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Mercer 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: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 6
inputs: county of Pennsylvania
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Pennsylvania" . ?e_1 <contains_administrative_territorial_entity> ?e . ?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> "Mercer County" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Mahoning County" .   }
Answer: 39