Question: How is Sussex County, which is located in New Jersey, related to Passaic County?
Choices:
designed to carry
start point
discoverer or inventor
military rank
shares border with
manner of death
student
commander of
works in collection
sponsor
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Sussex County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "New Jersey" . ?e_2 <pred:name> "Passaic County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: New Jersey
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Sussex County
function: And
dependencies: 1
2
function: Find
inputs: Passaic County
function: QueryRelation
dependencies: 3
4