SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/capital> <http://dbpedia.org/resource/Bocas_Town,_Bocas_del_Toro> . ?x <http://dbpedia.org/property/country> ?uri . }
In which country is Bocas del toro a capital of some region?
SELECT DISTINCT ?c WHERE { ?a property:country ?c . . ?a property:capital resource:Bocas_Town,_Bocas_del_Toro }
Panama, Panama
The country of the region with capital Bocas Town, Bocas del Toro is [Panama, Panama].
In [Panama, Panama] country Bocas del toro is a capital of some region.