what is the {end time} for {Irkutsk} has {located in the administrative territorial entity} as {Tobolsk Province} ?
In what year did Irkutsk separate from the Tobolsk Province?
When did Irkutsk cease to become part of the Tobolsk Province?
SELECT ?v WHERE { resource:Irkutsk property:located_in_the_administrative_territorial_entity ?c . ?c property:located_in_the_administrative_territorial_entity resource:Tobolsk_Province . ?c property:end_time ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6576> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4459143> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q6576 p:P131 ?s . ?s ps:P131 wd:Q4459143 . ?s pq:P582 ?value}