What is the {colonial power} for {replaces} of {Kingdom of Great Britain}
[]
Which is the colonial power that replaced the Kingdom of Great Britain?
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:colonial_power . ?h property:replaces resource:Great_Britain }
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/P1365> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q161885> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q20181813> } 
 select distinct ?sbj where { ?sbj wdt:P1365 wd:Q161885 . ?sbj wdt:P31 wd:Q20181813 } 