Question: Which sovereign state shares a border with the sovereign state with the ISO 3166-1 alpha-3 code of MLI (in the subject of Côte d'Ivoire–Mali border)?
Choices:
Guinea
Ivory Coast
Switzerland
Kiribati
Socialist Federal Republic of Yugoslavia
Mali
Cambodia
Senegal
Weimar Republic
Algeria
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: ISO 3166-1 alpha-3 code
MLI
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
Côte d'Ivoire–Mali 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 <ISO_3166-1_alpha-3_code> ?pv . ?pv <pred:value> "MLI" .  [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Côte d'Ivoire–Mali border" .  }
Answer: Ivory Coast