what is the {end time} for {Pyotr Ilyich Tchaikovsky} has {educated at} as {Saint Petersburg Conservatory} ?
On what date did Pyortr Ilyich Tchaikovsky depart from the Saint Petersburg Conservatory?
When did Pyotr Ilyich Tchaikovsky leave the Saint Petersburg Conservatory?
SELECT ?g WHERE { ?e property:end_time ?g . ?e property:educated_at resource:Saint_Petersburg_Conservatory . resource:Pyotr_Ilyich_Tchaikovsky property:educated_at ?e }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7315> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q178416> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q7315 p:P69 ?s . ?s ps:P69 wd:Q178416 . ?s pq:P582 ?value}