What is {spouse} of {Carol Burnett} that is {end time} is {1984-1-1} ?
Who was Carol Burnett married to up until 1984, the year he passed away?
Who is the husband of Carol Burnett who died in 1984?
SELECT ?y WHERE { resource:Carol_Burnett property:spouse ?z . FILTER ( CONTAINS ( YEAR ( ?s ) , '1984' ) ) . ?z property:end_time ?s . ?z property:spouse ?y }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q255565> .
?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> <1984-1-1>
} 

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