Question: Who was married to Ruhollah Khomeini and when did the marriage end?
Paraphrase: Who used to be married to Ruhollah Khomeini and when did the marriage end?
SPARQL (Wikidata): SELECT ?value1 ?obj WHERE { wd:Q38823 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?value1 . }