Question: What is the connection between Washington County (the one that shares border with Rensselaer County) to Essex County (the one that partially contains Adirondack Mountains)?
Choices: medical condition
shares border with
movement
official religion
operating system
approved by
honorific prefix
from fictional universe
instrument
material used
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Washington County" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "Rensselaer County" . ?e_2 <pred:name> "Essex County" . ?e_2 <partially_contains> ?e_4 . ?e_4 <pred:name> "Adirondack Mountains" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Rensselaer County
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Washington County
function: And
dependencies: 1
2
function: Find
inputs: Adirondack Mountains
function: Relate
dependencies: 4
inputs: partially contains
backward
function: Find
inputs: Essex County
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: shares border with