The Socialist Party ​of Prime Minister Pedro Sanchez ⁠came second and Mr. Sanchez has conceded defeat.