what is the {end time} for {Philip II of France} has {spouse} as {Isabella of Hainault} ?
Philip II of France and Isabella of Hainault were divorced in which year?
In what year were Philip II of France and Isabella of Hainault divorced?
SELECT ?l WHERE { resource:Philip_II_of_France property:spouse ?y . ?y property:end_time ?l . ?y property:spouse resource:Isabella_of_Hainault }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34428> .
?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/Q230050> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q34428 p:P26 ?s . ?s ps:P26 wd:Q230050 . ?s pq:P582 ?value}