Question: What sovereign state shares a border with the sovereign state that is the country of Clube de Regatas do Flamengo (the subject of this statement is Brazil–Suriname border)?
Choices:
Brazil
Switzerland
Guyana
Uruguay
Suriname
Kiribati
Argentina
Venezuela
Peru
Weimar Republic
Answer: Suriname
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_3 <country> ?e_1 . ?e_3 <pred:name> "Clube de Regatas do Flamengo" .  [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Brazil–Suriname border" .  }
Program:
function: Find
inputs: Clube de Regatas do Flamengo
function: Relate
dependencies: 0
inputs: country
forward
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
Brazil–Suriname border
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: What
dependencies: 5