What is {spouse} of {Ruby Dee} that is {end time} is {2005-1-1} ?
What was the name of Ruby Dee's spouse when their marriage ended in 2005?
Who was Ruby Dee's spouse when their marriage ended in 2005?
SELECT ?d WHERE { resource:Ruby_Dee property:spouse ?i . ?i property:spouse ?d . ?i property:end_time ?q . FILTER ( CONTAINS ( YEAR ( ?q ) , '2005' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q234360> .
?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> <2005-1-1>
} 

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