Question: How is New Jersey related to Middlesex County that borders Monmouth County?
Choices:
headquarters location
work location
conferred by
time period
material used
director
contains administrative territorial entity
source of income
history of topic
member of political party
Program:
function: Find
inputs: New Jersey
function: Find
inputs: Monmouth County
function: Relate
dependencies: 1
inputs: shares border with
forward
function: Find
inputs: Middlesex County
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "New Jersey" . ?e_2 <pred:name> "Middlesex County" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Monmouth County" . ?e_1 ?p ?e_2 .  }
Answer: contains administrative territorial entity