What is the {historical country} for {replaces} of {German Empire}
Historically, what country replaced the German Empire?
What is the historic replacement country of the German Empire?
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:historical_country . ?d property:replaces resource:German_Empire }
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/Q43287> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3024240> } 
 select distinct ?sbj where { ?sbj wdt:P1365 wd:Q43287 . ?sbj wdt:P31 wd:Q3024240 } 