what is the {end time} for {Holy Roman Empire} has {instance of} as {sovereign state} ?
what is the end time to Holy Roman Empire has instance of as sovereign state?
SELECT ?value WHERE { wd:Q12548 p:P31 ?s . ?s ps:P31 wd:Q3624078 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12548> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3624078> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

When did the Holy Roman Empire cease to be a sovereign state?