Question: How is Putnam County (bordering Westchester County) related to Dutchess County?
Choices:
basin country
continent
shares border with
designed by
affiliation
location
facet of
designed to carry
license
doctoral advisor
Answer: shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Putnam County" . ?e_1 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Westchester County" . ?e_2 <pred:name> "Dutchess County" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Westchester County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Putnam County
function: And
dependencies: 1
2
function: Find
inputs: Dutchess County
function: QueryRelation
dependencies: 3
4