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
Answer: shares border with
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 .  }
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