Question: What American city shares a border with a New Jersey city established before 1997?
Choices:
New Haven
High Point
Pleasantville
Oakland
Warwick
Waukegan
Burlington
Brooklyn
Columbus
Boulder
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: start time
1997
<
function: FilterConcept
dependencies: 1
inputs: city in New Jersey
function: Relate
dependencies: 2
inputs: shares border with
backward
function: FilterConcept
dependencies: 3
inputs: city of the United States
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city in New Jersey" . ?e_1 <start_time> ?pv_1 . ?pv_1 <pred:year> ?v . FILTER ( ?v < 1997 ) .   }
Answer: Pleasantville