What is {spouse} of {Michèle Morgan} that is {end time} is {2006-1-1} ?
Who was Michele Morgan married to before they divorced in 2006?
Who did Michele Morgan divorce in 2006?
SELECT ?y WHERE { FILTER ( CONTAINS ( YEAR ( ?i ) , '2006' ) ) . ?l property:end_time ?i . ?l property:spouse ?y . resource:Michèle_Morgan property:spouse ?l }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q234897> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P582> <2006-1-1>
} 

SELECT ?obj WHERE { wd:Q234897 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2006')) }