What is {spouse} of {Hank Azaria} that is {end time} is {2000-1-1} ?
Hank Azaria divorced from whom on 1st January 2000
Who was divorced from Hank Azaria on 1st January, 2000
SELECT ?f WHERE { ?z property:spouse ?f . FILTER ( CONTAINS ( YEAR ( ?p ) , '2000' ) ) . ?z property:end_time ?p . resource:Hank_Azaria property:spouse ?z }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q202056> .
?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> <2000-1-1>
} 

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