What is {spouse} of {Cary Grant} that is {end time} is {1945-1-1} ?
Who is Cary Grant's wife?
Who is the spouse of Cary Grant?
SELECT ?z WHERE { ?s property:spouse ?z . resource:Cary_Grant property:spouse ?s . FILTER ( CONTAINS ( YEAR ( ?r ) , '1945' ) ) . ?s property:end_time ?r }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q83410> .
?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> <1945-1-1>
} 

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