Question: What is the connection between Hamilton County (the one that shares border with Saratoga County) to Herkimer County?
Choices:
month of the year
educated at
has quality
captain
sibling
narrative location
shares border with
instrumentation
fabrication method
contributing factor of
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hamilton County" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Saratoga County" . ?e_2 <pred:name> "Herkimer County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Saratoga County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Hamilton County
function: And
dependencies: 1
2
function: Find
inputs: Herkimer County
function: QueryRelation
dependencies: 3
4