Samajwadi Party loss in election