What is {spouse} of {Marilyn Monroe} that is {end time} is {1946-9-13} ?
Who ended a marriage to Marilyn Monroe on 9/13/1946?
Who was Marilyn Monroe's spouse whose marriage to her ended on September 13, 1946?
SELECT ?h WHERE { ?d property:end_time ?e . resource:Marilyn_Monroe property:spouse ?d . FILTER ( CONTAINS ( YEAR ( ?e ) , '1946' ) ) . ?d property:spouse ?h }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4616> .
?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> <1946-9-13>
} 

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