Question: Along the Idaho-Montana border which river is partially within the American states that borders Idaho, that has a nickname of the gem state?
Choices:
Ohio River
Mississippi River
Academy Award for Best Documentary (Short Subject)
Danube
Amazon
Columbia River
Hudson River
Rhine
River Thames
Missouri River
Program:
function: Find
inputs: Idaho
function: FilterStr
dependencies: 0
inputs: nickname
Gem State
function: Relate
dependencies: 1
inputs: shares border with
forward
function: QFilterStr
dependencies: 2
inputs: statement is subject of
Idaho–Montana border
function: FilterConcept
dependencies: 3
inputs: state of the United States
function: Relate
dependencies: 4
inputs: partially contains
forward
function: FilterConcept
dependencies: 5
inputs: river
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "river" . ?e_1 <partially_contains> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "state of the United States" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "Idaho" . ?e_3 <nickname> ?pv . ?pv <pred:value> "Gem State" . [ <pred:fact_h> ?e_3 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Idaho–Montana border" .   }
Answer: Missouri River