What is {spouse} of {Sammy Davis, Jr.} that is {end time} is {1968-1-1} ?
In 1968, who did Sammy Davis, Jr. get a divorce from?
Who did Sammy Davis, Jr. divorce in 1968?
SELECT ?f WHERE { resource:Sammy_Davis_Jr. property:spouse ?m . ?m property:end_time ?g . ?m property:spouse ?f . FILTER ( CONTAINS ( YEAR ( ?g ) , '1968' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q297816> .
?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> <1968-1-1>
} 

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