What is {spouse} of {Andriyan Nikolayev} that is {end time} is {1982-1-1} ?
Who divorced Andriyan Nikolayev in 1982?
Who did Andriyan Nikolayev divorce in 1982?
SELECT ?d WHERE { FILTER ( CONTAINS ( YEAR ( ?a ) , '1982' ) ) . ?e property:spouse ?d . ?e property:end_time ?a . resource:Andriyan_Nikolayev property:spouse ?e }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312474> .
?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> <1982-1-1>
} 

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