What is {spouse} of {Stan Laurel} that is {end time} is {1965-2-23} ?
Who was Stan Laurel married to that he divorced on Feburary 2, 1965?
What was the name of Stan Laurel's spouse that ended on 1965-2-3?
SELECT ?v WHERE { resource:Stan_Laurel property:spouse ?r . ?r property:spouse ?v . FILTER ( CONTAINS ( YEAR ( ?v ) , '1965' ) ) . ?r property:end_time ?v }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q72869> .
?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> <1965-2-23>
} 

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