What is the {historical country} for {replaced by} of {Kingdom of Great Britain}
What nation was supplanted by the Kingdom of Incredible Britain?
What country was replaced by the Kingdom of Great Britain?
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:historical_country . ?j 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/Q3024240> } 
 select distinct ?sbj where { ?sbj wdt:P1366 wd:Q161885 . ?sbj wdt:P31 wd:Q3024240 } 
Kingdom of England Kingdom of Scotland