Question: How many Pennsylvania cities share a border with the New Jersey city that is the capital of Essex County (whose date of establishment is 1683-03-07)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Essex County
function: FilterDate
dependencies: 0
inputs: inception
1683-03-07
=
function: Relate
dependencies: 1
inputs: capital
forward
function: FilterConcept
dependencies: 2
inputs: city in New Jersey
function: Relate
dependencies: 3
inputs: shares border with
backward
function: FilterConcept
dependencies: 4
inputs: city of Pennsylvania
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of Pennsylvania" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city in New Jersey" . ?e_2 <capital> ?e_1 . ?e_2 <pred:name> "Essex County" . ?e_2 <inception> ?pv . ?pv <pred:date> "1683-03-07"^^xsd:date .   }
Answer: 0