What is the {archipelagic state} for {head of government} of {Joko Widodo}
Tell the name of country, located in an archipelago, which is governed by Joko Widodo.
What is the archipelagic state whose head of government is Joko Widodo?
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:archipelagic_state . ?m property:head_of_government resource:Joko_Widodo }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3318231> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q13107770> } 
 select distinct ?sbj where { ?sbj wdt:P6 wd:Q3318231 . ?sbj wdt:P31 wd:Q13107770 } 
Indonesia