Question: What is the connection between DeKalb County (the one that shares border with McHenry County) to Kane County (the one that shares border with Cook County)?
Choices:
godparent
uses
newspaper format
film editor
next lower rank
student
father
place served by transport hub
statistical leader
shares border with
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "DeKalb County" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "McHenry County" . ?e_2 <pred:name> "Kane County" . ?e_4 <shares_border_with> ?e_2 . ?e_4 <pred:name> "Cook County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: McHenry County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: DeKalb County
function: And
dependencies: 1
2
function: Find
inputs: Cook County
function: Relate
dependencies: 4
inputs: shares border with
forward
function: Find
inputs: Kane County
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7