Table:
Outcome

No.

Date

Tournament

Surface

Opponent

Score

Runner-up

1.

15 April 2001

Grand Prix Hassan II, Casablanca, Morocco

Clay

Guillermo Cañas

5–7, 2–6

Winner

1.

29 July 2001

Orange Warsaw Open, Sopot, Poland

Clay

Albert Portas

1–6, 7–5, 7–6(7–2)

Runner-up

2.

20 July 2003

Mercedes Cup, Stuttgart, Germany

Clay

Guillermo Coria

2–6, 2–6, 1–6

Winner

2.

2 May 2004

Torneo Godó, Barcelona, Spain

Clay

Gastón Gaudio

6–3, 4–6, 6–2, 3–6, 6–3

Runner-up

3.

1 May 2005

Estoril Open, Estoril, Portugal

Clay

Gastón Gaudio

1–6, 6–2, 1–6

Runner-up

4.

30 April 2006

Torneo Godó, Barcelona, Spain

Clay

Rafael Nadal

4–6, 4–6, 0–6

Winner

3.

21 May 2006

Hamburg Masters, Hamburg, Germany

Clay

Radek Štěpánek

6–1, 6–3, 6–3

Winner

4.

16 July 2006

Swedish Open, Båstad, Sweden

Clay

Nikolay Davydenko

6–2, 6–1

Runner-up

5.

14 January 2007

Heineken Open, Auckland, New Zealand

Hard

David Ferrer

4–6, 2–6

Winner

5.

5 August 2007

Orange Warsaw Open, Sopot, Poland (2)

Clay

José Acasuso

7–5, 6–0

Runner-up

6.

16 September 2007

China Open, Beijing, China

Hard (i)

Fernando González

1–6, 6–3, 1–6

Winner

6.

7 October 2007

Open de Moselle, Metz, France

Hard (i)

Andy Murray

0–6, 6–2, 6–3

Runner-up

7.

15 June 2008

Orange Warsaw Open, Warsaw, Poland

Clay

Nikolay Davydenko

3–6, 3–6

Winner

7.

13 July 2008

Swedish Open, Båstad, Sweden (2)

Clay

Tomáš Berdych

6–4, 6–1

Winner

8.

14 February 2009

Brasil Open, Costa do Sauípe, Brazil

Clay

Thomaz Bellucci

6–3, 3–6, 6–4

Winner

9.

22 February 2009

Copa Telmex, Buenos Aires, Argentina

Clay

Juan Mónaco

7–5, 2–6, 7–6(7–5)

Winner

10.

6 February 2011

Chile Open, Santiago, Chile

Clay

Santiago Giraldo

6–2, 2–6, 7–6(7–5)

Winner

11.

14 April 2013

Grand Prix Hassan II, Casablanca, Morocco

Clay

Kevin Anderson

7–6(8–6), 4–6, 6–3

Winner

12.

28 July 2013

ATP Vegeta Croatia Open Umag, Umag, Croatia

Clay

Fabio Fognini

6–0, 6–3

Watch the table in this image and convert it into an HTML table in the text form.

<table border="1" cellspacing="0">
 <tr> <th> Outcome </th> <th> No. </th> <th> Date </th> <th> Tournament </th> <th> Surface </th> <th> Opponent </th> <th> Score </th> </tr>
 <tr> <td> Runner-up </td> <td> 1. </td> <td> 15 April 2001 </td> <td> <a> Grand Prix Hassan II </a> , Casablanca, Morocco </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Guillermo Cañas </a> </td> <td> 5–7, 2–6 </td> </tr>
 <tr> <td> Winner </td> <td> 1. </td> <td> 29 July 2001 </td> <td> <a> Orange Warsaw Open </a> , Sopot, Poland </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Albert Portas </a> </td> <td> 1–6, 7–5, 7–6 <sup> (7–2) </sup> </td> </tr>
 <tr> <td> Runner-up </td> <td> 2. </td> <td> 20 July 2003 </td> <td> <a> Mercedes Cup </a> , Stuttgart, Germany </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Guillermo Coria </a> </td> <td> 2–6, 2–6, 1–6 </td> </tr>
 <tr> <td> Winner </td> <td> 2. </td> <td> 2 May 2004 </td> <td> <a> Torneo Godó </a> , Barcelona, Spain </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Gastón Gaudio </a> </td> <td> 6–3, 4–6, 6–2, 3–6, 6–3 </td> </tr>
 <tr> <td> Runner-up </td> <td> 3. </td> <td> 1 May 2005 </td> <td> <a> Estoril Open </a> , Estoril, Portugal </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Gastón Gaudio </a> </td> <td> 1–6, 6–2, 1–6 </td> </tr>
 <tr> <td> Runner-up </td> <td> 4. </td> <td> 30 April 2006 </td> <td> <a> Torneo Godó </a> , Barcelona, Spain </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Rafael Nadal </a> </td> <td> 4–6, 4–6, 0–6 </td> </tr>
 <tr> <td> Winner </td> <td> 3. </td> <td> 21 May 2006 </td> <td> <a> Hamburg Masters </a> , Hamburg, Germany </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Radek Štěpánek </a> </td> <td> 6–1, 6–3, 6–3 </td> </tr>
 <tr> <td> Winner </td> <td> 4. </td> <td> 16 July 2006 </td> <td> <a> Swedish Open </a> , Båstad, Sweden </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Nikolay Davydenko </a> </td> <td> 6–2, 6–1 </td> </tr>
 <tr> <td> Runner-up </td> <td> 5. </td> <td> 14 January 2007 </td> <td> <a> Heineken Open </a> , Auckland, New Zealand </td> <td> Hard </td> <td> <span> <a> </a> </span> <a> David Ferrer </a> </td> <td> 4–6, 2–6 </td> </tr>
 <tr> <td> Winner </td> <td> 5. </td> <td> 5 August 2007 </td> <td> <a> Orange Warsaw Open </a> , Sopot, Poland <small> (2) </small> </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> José Acasuso </a> </td> <td> 7–5, 6–0 </td> </tr>
 <tr> <td> Runner-up </td> <td> 6. </td> <td> 16 September 2007 </td> <td> <a> China Open </a> , Beijing, China </td> <td> Hard (i) </td> <td> <span> <a> </a> </span> <a> Fernando González </a> </td> <td> 1–6, 6–3, 1–6 </td> </tr>
 <tr> <td> Winner </td> <td> 6. </td> <td> 7 October 2007 </td> <td> <a> Open de Moselle </a> , Metz, France </td> <td> Hard (i) </td> <td> <span> <a> </a> </span> <a> Andy Murray </a> </td> <td> 0–6, 6–2, 6–3 </td> </tr>
 <tr> <td> Runner-up </td> <td> 7. </td> <td> 15 June 2008 </td> <td> <a> Orange Warsaw Open </a> , Warsaw, Poland </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Nikolay Davydenko </a> </td> <td> 3–6, 3–6 </td> </tr>
 <tr> <td> Winner </td> <td> 7. </td> <td> 13 July 2008 </td> <td> <a> Swedish Open </a> , Båstad, Sweden <small> (2) </small> </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Tomáš Berdych </a> </td> <td> 6–4, 6–1 </td> </tr>
 <tr> <td> Winner </td> <td> 8. </td> <td> 14 February 2009 </td> <td> <a> Brasil Open </a> , Costa do Sauípe, Brazil </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Thomaz Bellucci </a> </td> <td> 6–3, 3–6, 6–4 </td> </tr>
 <tr> <td> Winner </td> <td> 9. </td> <td> 22 February 2009 </td> <td> <a> Copa Telmex </a> , Buenos Aires, Argentina </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Juan Mónaco </a> </td> <td> 7–5, 2–6, 7–6 <sup> (7–5) </sup> </td> </tr>
 <tr> <td> Winner </td> <td> 10. </td> <td> 6 February 2011 </td> <td> <a> Chile Open </a> , Santiago, Chile </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Santiago Giraldo </a> </td> <td> 6–2, 2–6, 7–6 <sup> (7–5) </sup> </td> </tr>
 <tr> <td> Winner </td> <td> 11. </td> <td> 14 April 2013 </td> <td> <a> Grand Prix Hassan II </a> , Casablanca, Morocco </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Kevin Anderson </a> </td> <td> 7–6 <sup> (8–6) </sup> , 4–6, 6–3 </td> </tr>
 <tr> <td> Winner </td> <td> 12. </td> <td> 28 July 2013 </td> <td> <a> ATP Vegeta Croatia Open Umag </a> , Umag, Croatia </td> <td> Clay </td> <td> <span> <a> </a> </span> <a> Fabio Fognini </a> </td> <td> 6–0, 6–3 </td> </tr>
</table>