Complex sentence: He served in that position from August 2002, when he was elected to a five-year term by the electoral college following the death of Krishan Kant, until he resigned on July 21,2007, after losing the presidential election to Pratibha Patil.
Split into simpler sentences: He served in that position since August 2002, when he was elected to a five-year term by the electoral college following the death of Krishan Kant. He resigned on July 21,2007, after losing the presidential election to Pratibha Patil.