Question: Which sovereign state shares a border with the sovereign state whose demonym is senegales (in the subject of Guinea–Senegal border)?
Choices:
Gambia
Guinea
Guinea-Bissau
Switzerland
Russian Soviet Federative Socialist Republic
Kiribati
Socialist Federal Republic of Yugoslavia
Senegal
Weimar Republic
Mali
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
senegales
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: Relate
dependencies: 2
inputs: shares border with
backward
function: QFilterStr
dependencies: 3
inputs: statement is subject of
Guinea–Senegal border
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <demonym> ?pv . ?pv <pred:value> "senegales" .  [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Guinea–Senegal border" .  }
Answer: Guinea