what is the {end time} for {Wassily Kandinski} has {employer} as {Bauhaus} ?
On what date did Wassily Kandinski cease teaching at Bauhaus?
When did Wassily Kandinski finish teaching at Bauhaus?
SELECT ?a WHERE { resource:Wassily_Kandinsky property:employer ?d . ?d property:employer resource:Bauhaus . ?d property:end_time ?a }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q61064> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P108> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q124354> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q61064 p:P108 ?s . ?s ps:P108 wd:Q124354 . ?s pq:P582 ?value}