Ansari, who had merged his Quami Ekta Dal (QED) with BSP before polls and claimed to ensure victory for the party, managed 96,411 votes while his nearest rival Mahendra Rajbhar of Suheldev Bhartiya Samaj Party, an ally of BJP, polled 89,947 votes.
However, Ansari's son Abbas Ansari, who was in fray from Ghosi seat and brother Sibgatullah Ansari who had contested from Mohmadabad, bit the dust in the crucial hustings which saw Bahujan Samaj Party (BSP) get bundled at 19 seats.
While announcing QED's merger with BSP, party supremo Mayawati had claimed the image of the Ansari family was being "maligned" by political rivals. They were being framed in "false cases", she had said before fielding them as party candidates.
Notably, in June last year, QED had announced merger with Samajwadi Party in presence of Shivpal Yadav, the then state unit president of the party. However, the move was soon cancelled after a vehement opposition by Akhilesh Yadav.