what is the {end time} for {Józef Cyrankiewicz} has {spouse} as {Nina Andrycz} ?
When did the divorce of Jozef Cyrankiewicz and his wife Nina Angrycz happen?
When did Józef Cyrankiewicz and his spouse Nina Andrycz get divorced?
SELECT ?z WHERE { ?q property:spouse resource:Nina_Andrycz . resource:Józef_Cyrankiewicz property:spouse ?q . ?q property:end_time ?z }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q434797> .
?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/Q5404155> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q434797 p:P26 ?s . ?s ps:P26 wd:Q5404155 . ?s pq:P582 ?value}