Complex sentence: From 2008-2011, the party was led by Iain Gray in the Scottish Parliament, who announced his resignation after the party's defeat at the 2011 Scottish election.
Split into simpler sentences: From 2008-2011, the party was led by Iain Gray in the Scottish Parliament. Gray announced his resignation after the party's defeat at the 2011 Scottish election.