Question: What state of the United States shares border with the province of Canada which is the filming location of X2 ?
Choices:
Vermont
Northwest Territories
Minnesota
Maine
Maryland
Montana
Alaska
British Columbia
Wisconsin
Missouri
Program:
function: Find
inputs: X2
function: Relate
dependencies: 0
inputs: filming location
forward
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: Relate
dependencies: 2
inputs: shares border with
forward
function: FilterConcept
dependencies: 3
inputs: state of the United States
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of the United States" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "province of Canada" . ?e_2 <filming_location> ?e_1 . ?e_2 <pred:name> "X2" .   }
Answer: Montana