Answer
Danilo Türk, the incumbent president of Slovenia from 2007 to 2012, was defeated in the 2012 presidential runoff election by Borut Pahor, a former prime minister and member of the Social Democrats. Pahor won with a narrow margin, securing 53.27% of the vote compared to Türk's 46.73%.