what is the {end time} for {Poltava Oblast} has {head of government} as {Yevhen Tomin} ?
In which year Yevhen Tomin have relieved from Governor post of Poltava Oblast?
When did Yevhen Tomin stop being Governor for Poltava Oblast?
SELECT ?c WHERE { resource:Poltava_Oblast property:head_of_government ?l . ?l property:head_of_government resource:Yevhen_Tomin . ?l property:end_time ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q169501> .
?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/Q12161920> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q169501 p:P6 ?s . ?s ps:P6 wd:Q12161920 . ?s pq:P582 ?value}