what is the {end time} for {John II of France} has {spouse} as {Bonne of Bohemia} ?
In what year did the marriage between John II of France and Bonne of Bohemia come to an end?
When did the marriage of John II of France and Bonne of Bohemia end?
SELECT ?j WHERE { ?c property:spouse resource:Bonne_de_Luxembourg . ?c property:end_time ?j . resource:John_II_of_France property:spouse ?c }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q169992> .
?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/Q235487> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q169992 p:P26 ?s . ?s ps:P26 wd:Q235487 . ?s pq:P582 ?value}