Question: Who was the spouse of Jim Carrey prior to their divorce in 1997?
Paraphrase: Who did Jim Carrey divorce in 1997?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q40504 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1997')) }