Please read the following table in HTML format from a webpage and then answer the question in detail according to the table. Each table cell is defined by a <td> and a </td> tag. Each table row starts with a <tr> and ends with a </tr> tag. 'rowspan=m' and 'colspan=n' represents a cell spaning over 'm' rows and 'n' columns.

Webpage title:
Machhlishahr (Assembly constituency)
Table title:
17th Vidhan Sabha: 2017 General Elections
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=2 rowspan=1 > Party </th><th colspan=1 rowspan=1 > Candidate </th><th colspan=1 rowspan=1 > Votes </th><th colspan=1 rowspan=1 > % </th><th colspan=1 rowspan=1 > ± </th></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td class="highlighted"  colspan=1 rowspan=1 > SP </td><td class="highlighted"  colspan=1 rowspan=1 > Jagdish Sonkar </td><td class="highlighted"  colspan=1 rowspan=1 > 72,368 </td><td colspan=1 rowspan=1 > 35.10 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td class="highlighted"  colspan=1 rowspan=1 > BJP </td><td class="highlighted"  colspan=1 rowspan=1 > Anita Rawat </td><td class="highlighted"  colspan=1 rowspan=1 > 68,189 </td><td colspan=1 rowspan=1 > 33.07 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > BSP </td><td colspan=1 rowspan=1 > Sushila Saroj </td><td colspan=1 rowspan=1 > 52,796 </td><td colspan=1 rowspan=1 > 25.61 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > NISHAD </td><td colspan=1 rowspan=1 > Ram Sevak </td><td colspan=1 rowspan=1 > 4,484 </td><td colspan=1 rowspan=1 > 2.17 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > NOTA </td><td colspan=1 rowspan=1 > None of the Above </td><td colspan=1 rowspan=1 > 2,165 </td><td colspan=1 rowspan=1 > 1.05 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 > Reminder 10 candidates </td><td colspan=1 rowspan=1 > 8,342 </td><td colspan=1 rowspan=1 > 4 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Majority </th><td colspan=1 rowspan=1 > 4,179 </td><td colspan=1 rowspan=1 > 2.01 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <th colspan=3 rowspan=1 > Turnout </th><td colspan=1 rowspan=1 > 2,08,344 </td><td colspan=1 rowspan=1 > 57.06 </td><td colspan=1 rowspan=1 >  </td></tr>
<tr> <td colspan=1 rowspan=1 >  </td><td colspan=2 rowspan=1 > SP hold </td><th colspan=1 rowspan=1 > Swing </th><td colspan=1 rowspan=1 >  </td><td colspan=1 rowspan=1 >  </td></tr>
</table>
Question:
Who won the 2017 Elections and by what margin?
Answer:
Machhlishahr (Assembly constituency) belongs to Samajwadi Party candidate Jagdish Sonkar who won in 2017 Elections by defeating Bharatiya Janta Party candidate Anita Rawat by a margin of 4,179 votes.