Question: How is Wayne County (the one that is located in Pennsylvania) connected to Monroe County (the one that shares border with Luzerne County)?
Choices:
commissioned by
basin country
has quality
place served by transport hub
located on astronomical location
rector
derivative work
month of the year
shares border with
is a list of
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Wayne County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Pennsylvania" . ?e_2 <pred:name> "Monroe County" . ?e_4 <shares_border_with> ?e_2 . ?e_4 <pred:name> "Luzerne County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Wayne County
function: And
dependencies: 1
2
function: Find
inputs: Luzerne County
function: Relate
dependencies: 4
inputs: shares border with
forward
function: Find
inputs: Monroe County
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7