Question: How is Grafton County related to the Essex County that borders Grafton County?
Choices: location of final assembly
director/manager
successful candidate
geographic distribution
religious order
editor
manner of death
soundtrack album
shares border with
educated at
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Grafton County" . ?e_2 <pred:name> "Essex County" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Grafton County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Grafton County
function: Find
inputs: Grafton County
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Essex County
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: shares border with