what is the {applies to part} for {Thuringia} has {replaces} as {Leipzig District} ?
When did Thuringia become the Leipzig District?
SELECT ?value WHERE { wd:Q1205 p:P1365 ?s . ?s ps:P1365 wd:Q48079 . ?s pq:P518 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1205> .
?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/Q48079> .
?statement <http://www.wikidata.org/entity/P518> ?value. 
} 

When did Thuringia start as the Leipzig District?