Question: What position did Rajiv Gandhi hold that ended on December 2, 1989?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q4593 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1989')) }