what is the {end time} for {Maya Plisetskaya} has {spouse} as {Māris Liepa} ?
When was the end of the marriage between Maya Plisetskaya and Māris Liepa?
When did the marriage between Maya Plisetskaya and Māris Liepa end?
SELECT ?w WHERE { ?r property:end_time ?w . resource:Maya_Plisetskaya property:spouse ?r . ?r property:spouse resource:Māris_Liepa }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q460756> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q2637804> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q460756 p:P26 ?s . ?s ps:P26 wd:Q2637804 . ?s pq:P582 ?value}