what is the {end time} for {Charles IV} has {spouse} as {Elizabeth of Pomerania} ?
When were Charles IV and Elizabeth of Pomerania divorced?
What year did Charles IV divorce Elizabeth of Pomerania?
SELECT ?f WHERE { ?l property:end_time ?f . resource:Charles_IV property:spouse ?l . ?l property:spouse resource:Elizabeth_of_Pomerania }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q155669> .
?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/Q266519> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q155669 p:P26 ?s . ?s ps:P26 wd:Q266519 . ?s pq:P582 ?value}