what is the {end time} for {Barnaul} has {head of government} as {Lyudmila Zubovich} ?
Lyudmila Zubovich's was no longer head of government of Barnaul as of what date?
when did lyudmila zubovich tenure as the head of government of barnaul come to an end?
SELECT ?j WHERE { ?t property:end_time ?j . resource:Barnaul property:head_of_government ?t . ?t property:head_of_government resource:Lyudmila_Zubovich }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6014> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4194399> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q6014 p:P6 ?s . ?s ps:P6 wd:Q4194399 . ?s pq:P582 ?value}