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:
Roger Allam
Table title:
Television
Table:
<table id='hittask' contenteditable='False'>
<tr> <th colspan=1 rowspan=1 > Year </th><th colspan=1 rowspan=1 > Title </th><th colspan=1 rowspan=1 > Role </th><th colspan=1 rowspan=1 > Notes </th></tr>
<tr> <td colspan=1 rowspan=2 > 1989 </td><td colspan=1 rowspan=1 > Ending Up </td><td colspan=1 rowspan=1 > Dr. Mainwaring </td><td colspan=1 rowspan=3 > TV film </td></tr>
<tr> <td colspan=1 rowspan=1 > The Fairy Queen </td><td colspan=1 rowspan=1 > Oberon </td></tr>
<tr> <td colspan=1 rowspan=1 > 1990 </td><td colspan=1 rowspan=1 > The Investigation: Inside a Terrorist Bombing </td><td colspan=1 rowspan=1 > Charles Tremayne </td></tr>
<tr> <td colspan=1 rowspan=1 > 1992 </td><td colspan=1 rowspan=1 > Shakespeare: The Animated Tales </td><td colspan=1 rowspan=1 > Duke Orsino/Narrator </td><td colspan=1 rowspan=1 > Voice TV mini-series Episodes: "The Winter's Tale" & "Twelfth Night" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1994 </td><td colspan=1 rowspan=1 > Screen Two </td><td colspan=1 rowspan=1 > Stephen Summerchild </td><td colspan=1 rowspan=1 > TV series Episode: "A Landing on the Sun" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1997 </td><td colspan=1 rowspan=1 > Inspector Morse </td><td colspan=1 rowspan=1 > Denis Cornford </td><td colspan=1 rowspan=1 > TV series Episode: "Death Is Now My Neighbour" </td></tr>
<tr> <td colspan=1 rowspan=2 > 1998 </td><td colspan=1 rowspan=1 > Heartbeat </td><td colspan=1 rowspan=1 > Graham Hayes </td><td colspan=1 rowspan=1 > TV series Episode: "Echoes of the Past" </td></tr>
<tr> <td colspan=1 rowspan=1 > Midsomer Murders </td><td colspan=1 rowspan=1 > Alan Hollingsworth </td><td colspan=1 rowspan=1 > TV series Episode: "Faithful unto Death" </td></tr>
<tr> <td colspan=1 rowspan=1 > 1998–2000 </td><td colspan=1 rowspan=1 > The Creatives </td><td colspan=1 rowspan=1 > Charlie Baxter </td><td colspan=1 rowspan=1 > TV series </td></tr>
<tr> <td colspan=1 rowspan=1 > 1999 </td><td colspan=1 rowspan=1 > RKO 281 </td><td colspan=1 rowspan=1 > Walt Disney </td><td colspan=1 rowspan=1 > TV film </td></tr>
<tr> <td colspan=1 rowspan=2 > 2002 </td><td colspan=1 rowspan=1 > Foyle's War </td><td colspan=1 rowspan=1 > Alastair Graeme </td><td colspan=1 rowspan=1 > TV series Episode: "Eagle Day" </td></tr>
<tr> <td colspan=1 rowspan=1 > Waking the Dead </td><td colspan=1 rowspan=1 > Benjamin Gold </td><td colspan=1 rowspan=1 > TV series Episode: "Thin Air" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2003 </td><td colspan=1 rowspan=1 > The Roman Spring of Mrs. Stone </td><td colspan=1 rowspan=1 > Christopher </td><td colspan=1 rowspan=1 > TV film </td></tr>
<tr> <td colspan=1 rowspan=1 > 2005 </td><td colspan=1 rowspan=1 > The Inspector Lynley Mysteries </td><td colspan=1 rowspan=1 > Simon Featherstonehaugh </td><td colspan=1 rowspan=1 > TV series Episode: "The Seed of Cunning" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2005 to present </td><td colspan=1 rowspan=1 > Muffin The Mule </td><td colspan=1 rowspan=1 > Narrator </td><td colspan=1 rowspan=1 > Audiobooks only </td></tr>
<tr> <td colspan=1 rowspan=1 > 2006 </td><td colspan=1 rowspan=1 > Spooks </td><td colspan=1 rowspan=1 > Paul Millington </td><td colspan=1 rowspan=1 > TV series </td></tr>
<tr> <td colspan=1 rowspan=1 > 2007–2012 </td><td colspan=1 rowspan=1 > The Thick of It </td><td colspan=1 rowspan=1 > Peter Mannion </td><td colspan=1 rowspan=1 > TV series </td></tr>
<tr> <td colspan=1 rowspan=1 > 2008 </td><td colspan=1 rowspan=1 > The Curse of Steptoe </td><td colspan=1 rowspan=1 > Tom Sloane </td><td colspan=1 rowspan=1 > TV film </td></tr>
<tr> <td colspan=1 rowspan=4 > 2009 </td><td colspan=1 rowspan=1 > The Old Guys </td><td colspan=1 rowspan=1 > Ned </td><td colspan=1 rowspan=1 > TV series Episode: "The Therapist" </td></tr>
<tr> <td colspan=1 rowspan=1 > Margaret </td><td colspan=1 rowspan=1 > John Wakeham </td><td colspan=1 rowspan=1 > TV film </td></tr>
<tr> <td colspan=1 rowspan=1 > Kröd Mändoon and the Flaming Sword of Fire </td><td colspan=1 rowspan=1 > General Arcadius </td><td colspan=1 rowspan=2 > TV series </td></tr>
<tr> <td colspan=1 rowspan=1 > Ashes to Ashes </td><td colspan=1 rowspan=1 > DSI Mackintosh </td></tr>
<tr> <td colspan=1 rowspan=1 > 2011 </td><td colspan=1 rowspan=1 > Game of Thrones </td><td colspan=1 rowspan=1 > Magister Illyrio Mopatis </td><td colspan=1 rowspan=1 > TV series; Episodes: "Winter is Coming" & "The Wolf and the Lion" </td></tr>
<tr> <td colspan=1 rowspan=1 > 2012 </td><td colspan=1 rowspan=1 > Parade's End </td><td colspan=1 rowspan=1 > General Campion </td><td class="highlighted"  colspan=1 rowspan=6 > TV series </td></tr>
<tr> <td colspan=1 rowspan=1 > 2012–present </td><td class="highlighted"  colspan=1 rowspan=1 > Endeavour </td><td class="highlighted"  colspan=1 rowspan=1 > DI Fred Thursday </td></tr>
<tr> <td colspan=1 rowspan=1 > 2013 </td><td colspan=1 rowspan=1 > The Politician's Husband </td><td colspan=1 rowspan=1 > Marcus Brock </td></tr>
<tr> <td colspan=1 rowspan=1 > 2013-2016 </td><td colspan=1 rowspan=1 > Sarah & Duck </td><td colspan=1 rowspan=1 > Narrator </td></tr>
<tr> <td colspan=1 rowspan=1 > 2014 </td><td colspan=1 rowspan=1 > Bad Education </td><td colspan=1 rowspan=1 > Maurice Hewston </td></tr>
<tr> <td colspan=1 rowspan=2 > 2016 </td><td colspan=1 rowspan=1 > The Missing </td><td colspan=1 rowspan=1 > Adrian Stone </td></tr>
<tr> <td colspan=1 rowspan=1 > Ethel & Ernest </td><td colspan=1 rowspan=1 > Middle Aged Doctor </td><td colspan=1 rowspan=1 > Voice TV film </td></tr>
</table>
Question:
What was Roger Allam‘s role in the TV series Endeavour?
Answer:
Roger Allam played DI Fred Thursday in the TV series Endeavour.