Question: What New Jersey city was established in 1849 and shares a border with Jersey City?
Choices:
Jersey City
Atlantic City
Bayonne
Perth Amboy
Hoboken
East Orange
Elizabeth
Newark
Plainfield
Passaic
Program:
function: Find
inputs: Jersey City
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: FindAll
function: FilterYear
dependencies: 3
inputs: inception
1849
=
function: FilterConcept
dependencies: 4
inputs: city in New Jersey
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city in New Jersey" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Jersey City" .  ?e <inception> ?pv . ?pv <pred:year> 1849 .  }
Answer: Hoboken