what is the {end time} for {Czechoslovakia} has {head of government} as {Jozef Lenárt} ?
Tell me the date that Jozef Lenart ended his time as head of government for Czechoslovakia.
When did Jozef Lenart end his time as head of government for Czechoslovakia?
SELECT ?y WHERE { ?q property:head_of_government resource:Jozef_Lenárt . resource:Czechoslovakia property:head_of_government ?q . ?q property:end_time ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q33946> .
?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/Q465455> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q33946 p:P6 ?s . ?s ps:P6 wd:Q465455 . ?s pq:P582 ?value}