What is the {kingdom} for {replaced by} of {Kingdom of Great Britain}
[]
Which is the kingdom replaced by the Kingdom of Great Britain?
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:kingdom . ?l property:replaced_by 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/P1366> . ?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/Q417175> } 
 select distinct ?sbj where { ?sbj wdt:P1366 wd:Q161885 . ?sbj wdt:P31 wd:Q417175 } 