What is the {historical country} for {replaces} of {Kingdom of Great Britain}
What country replaced Great Britain?
Which is the historical country that replaces the Kingdom of Great Britain?
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:historical_country . ?o 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/Q3024240> } 
 select distinct ?sbj where { ?sbj wdt:P1365 wd:Q161885 . ?sbj wdt:P31 wd:Q3024240 } 
United Kingdom of Great Britain and Ireland