Question: What is the administrative territorial entity that is an administrative division of Montana which shares a border with North Dakota?
Choices:
Washoe County
African Union
Merrimack County
Kent County
Hennepin County
Flathead County
Chisago County
York County
Jersey
Orange County
Program:
function: Find
inputs: North Dakota
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Montana
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Montana" . ?e_2 <shares_border_with> ?e_1 . ?e_2 <pred:name> "North Dakota" .   }
Answer: Flathead County