Question: What is the subject of Idaho (which shares a border with British Columbia) sharing a border with Wyoming (whose demonym is Wyomingite)?
Choices:
Bahrain–Saudi Arabia border
death of Benito Mussolini
Montana–South Dakota border
Denmark–Lithuania relations
Barbados–Canada relations
Mexico–Suriname relations
1984 NBA World Championship Series
Idaho–Wyoming border
Brunei–Japan relations
Finland–Norway border
Answer: Idaho–Wyoming border
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Idaho" . ?e_3 <shares_border_with> ?e_1 . ?e_3 <pred:name> "British Columbia" . ?e_2 <pred:name> "Wyoming" . ?e_2 <demonym> ?pv . ?pv <pred:value> "Wyomingite" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: British Columbia
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Idaho
function: And
dependencies: 1
2
function: Find
inputs: Wyoming
function: FilterStr
dependencies: 4
inputs: demonym
Wyomingite
function: QueryRelationQualifier
dependencies: 3
5
inputs: shares border with
statement is subject of