Question: To which part of the sovereign state that shares a border with Guinea-Bissau (in the subject of Guinea-Bissau–Senegal border) does the demonym "senegalezi" apply?
Choices:
European Russia
France
Posey County
Obion County
5th arrondissement of Lyon
Flo
Parkland Region
plural
Manitoba
Bandung
Answer: plural
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Guinea-Bissau" . [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv_1 . ?qpv_1 <pred:value> "Guinea-Bissau–Senegal border" . ?e <demonym> ?pv . ?pv <pred:value> "senegalezi" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Guinea-Bissau
function: Relate
dependencies: 0
inputs: shares border with
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Guinea-Bissau–Senegal border
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttrQualifier
dependencies: 3
inputs: demonym
senegalezi
applies to part