The SNP won more than half of the seats at Holyrood in 2011, an electoral triumph that paved the way for a poll on the country's future.