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:
Sam Heughan
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 > Character </th><th colspan=1 rowspan=1 > Production </th><th colspan=1 rowspan=1 > Notes </th></tr>
<tr> <td colspan=1 rowspan=1 > 2004 </td><td colspan=1 rowspan=1 > Island at War </td><td colspan=1 rowspan=1 > Philip Dorr </td><td colspan=1 rowspan=1 > PBS </td><td colspan=1 rowspan=1 > Miniseries, 5 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > 2005 </td><td colspan=1 rowspan=1 > River City </td><td colspan=1 rowspan=1 > Andrew Murray </td><td colspan=1 rowspan=1 > BBC One </td><td colspan=1 rowspan=1 > 4 episodes </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > 2006 </td><td class="highlighted"  colspan=1 rowspan=1 > The Wild West </td><td colspan=1 rowspan=1 > John Tunstall </td><td class="highlighted"  colspan=1 rowspan=1 > BBC/PBS </td><td class="highlighted"  colspan=1 rowspan=1 > Miniseries, episode "Billy the Kid" </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=4 > 2007 </td><td colspan=1 rowspan=1 > Midsomer Murders </td><td colspan=1 rowspan=1 > Ian King </td><td colspan=1 rowspan=1 > ITV </td><td colspan=1 rowspan=1 > Episode "King's Crystal" </td></tr>
<tr> <td colspan=1 rowspan=1 > Party Animals </td><td colspan=1 rowspan=1 > Adrian Chapple </td><td colspan=1 rowspan=1 > BBC </td><td colspan=1 rowspan=1 > 2 episodes </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=1 > A Very British Sex Scandal </td><td colspan=1 rowspan=1 > Edward McNally </td><td class="highlighted"  colspan=1 rowspan=1 > Channel 4 </td><td colspan=1 rowspan=1 > Television film </td></tr>
<tr> <td colspan=1 rowspan=1 > Rebus </td><td colspan=1 rowspan=1 > Peter Carr </td><td colspan=1 rowspan=1 > ITV </td><td colspan=1 rowspan=1 > Episode: "Knots and Crosses" </td></tr>
<tr> <td class="highlighted"  colspan=1 rowspan=2 > 2009 </td><td class="highlighted"  colspan=1 rowspan=1 > Breaking the Mould: The Story of Penicillin </td><td colspan=1 rowspan=1 > Dr Charles Fletcher </td><td class="highlighted"  colspan=1 rowspan=1 > BBC Four </td><td colspan=1 rowspan=1 > Television film </td></tr>
<tr> <td colspan=1 rowspan=1 > Doctors </td><td colspan=1 rowspan=1 > Scott Nielson </td><td colspan=1 rowspan=1 > BBC One </td><td colspan=1 rowspan=1 > Recurring role, 21 episodes </td></tr>
<tr> <td colspan=1 rowspan=2 > 2010 </td><td colspan=1 rowspan=1 > First Light </td><td colspan=1 rowspan=1 > Geoffrey 'Boy' Wellum </td><td colspan=1 rowspan=1 > BBC Two </td><td colspan=1 rowspan=1 > Television film </td></tr>
<tr> <td colspan=1 rowspan=1 > Any Human Heart </td><td colspan=1 rowspan=1 > Lieutenant McStay </td><td colspan=1 rowspan=1 > Channel 4 </td><td colspan=1 rowspan=1 > Miniseries, 2 episodes </td></tr>
<tr> <td colspan=1 rowspan=1 > 2011 </td><td colspan=1 rowspan=1 > A Princess for Christmas </td><td colspan=1 rowspan=1 > Prince Ashton of Castlebury </td><td colspan=1 rowspan=1 > Hallmark Channel </td><td colspan=1 rowspan=1 > Television film </td></tr>
<tr> <td colspan=1 rowspan=1 > 2014–present </td><td colspan=1 rowspan=1 > Outlander </td><td colspan=1 rowspan=1 > Jamie Fraser </td><td colspan=1 rowspan=1 > Starz </td><td colspan=1 rowspan=1 > Male lead </td></tr>
</table>
Question:
What roles did Heughan appear in during the years 2006, 2007 and 2009?
Answer:
Heughan appeared in BBC and PBS's miniseries The Wild West in 2006, Channel 4's A Very British Sex Scandal in 2007, and BBC Four's Breaking the Mould in 2009.