The Socialist party has won Sunday's general election by a large margin but it will have to form a coalition to govern. The party leader, Pedro Sanchez, is now assured of another term as prime minister, but he will have to choose between joining forces with the left-wing Podemos party and probably some nationalist parties to secure a majority in parliament. Or an alliance with the centre-right Ciudadanos. So let's take a look at how the election day went.