Question: How is Northwest Territories related to Montana that borders South Dakota?
Choices:
shares border with
archives at
edition or translation of
sidekick of
symptoms
is a list of
afflicts
contains administrative territorial entity
legislative body
terminus
Program:
function: Find
inputs: Northwest Territories
function: Find
inputs: South Dakota
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Montana
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Northwest Territories" . ?e_2 <pred:name> "Montana" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "South Dakota" . ?e_1 ?p ?e_2 .  }
Answer: shares border with