Question: How is Washington County, Maine connected to Penobscot County?
Choices:
destination point
production designer
lyrics by
shares border with
child astronomical body
designed by
occupant
indigenous to
material used
after a work by
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Washington County" . ?e_1 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Maine" . ?e_2 <pred:name> "Penobscot County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Maine
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Find
inputs: Penobscot County
function: QueryRelation
dependencies: 3
4