tournament                         2002                         2003                         2004                         2005                         2006                         2007                         2008                         2009                         2010                         2011                         2012
0        grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments       grand slam tournaments
1               australian open                            a                           1r                           1r                            a                           1r                           4r                           4r                           3r                           1r                           3r                           4r
2                   french open                           1r                           1r                           1r                           3r                           2r                           2r                            a                            a                           1r                           4r                           4r
3                     wimbledon                            a                            a                           1r                           4r                           1r                           sf                           4r                            a                            a                           4r                           4r
4                       us open                           lq                            a                           lq                           4r                           4r                           2r                           1r                           1r                           4r                           2r                           4r
5                    win - loss                        0 - 1                        0 - 2                        0 - 3                        8 - 3                        4 - 4                       10 - 4                        6 - 3                        2 - 2                        3 - 3                        9 - 4                       12 - 4
6       year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship      year - end championship
7         atp world tour finals              did not qualify              did not qualify              did not qualify              did not qualify              did not qualify                           rr              did not qualify              did not qualify              did not qualify              did not qualify              did not qualify
8   atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000  atp world tour masters 1000
9          indian wells masters                            a                            a                            a                            a                           4r                           4r                           4r                           3r                           1r                           qf                           2r
10                miami masters                            a                           1r                            a                            a                           2r                           3r                           2r                            a                           1r                           3r                           4r
11          monte carlo masters                           2r                           1r                           lq                           sf                            a                           qf                           3r                            a                           2r                           3r                            a
12             madrid masters 1                            a                            a                            a                            f                           1r                           2r                           2r                            a                            a                           1r                           3r
13                 rome masters                            a                            a                            a                           2r                            a                           2r                           1r                           3r                            a                           sf                           qf
14               canada masters                            a                            a                            a                           2r                            f                           2r                           qf                            a                           1r                           3r                            f
15           cincinnati masters                            a                            a                            a                           2r                           1r                           2r                           2r                            a                           3r                           3r                           1r
16           shanghai masters 2                            a                            a                            a                            a                           2r                           2r                           3r                           1r                           3r                            a                           2r
17                paris masters                           lq                           1r                           lq                            a                           3r                           sf                            a                            a                           2r                           3r                           2r
18                   win - loss                        1 - 1                        0 - 3                        0 - 0                       12 - 5                        9 - 6                       11 - 9                        8 - 8                        3 - 3                        6 - 7                       15 - 8                       12 - 8
19            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics            career statistics
20              titles - finals                        0 - 0                        0 - 0                        0 - 1                        1 - 2                        3 - 4                        1 - 3                        0 - 1                        0 - 0                        1 - 3                        0 - 0                        1 - 3
21         hardcourt win - loss                        0 - 0                        2 - 5                        4 - 4                        7 - 4                      14 - 12                      29 - 13                      18 - 13                      19 - 13                      20 - 14                      19 - 12                      27 - 15
22             grass win - loss                        0 - 1                        0 - 0                        0 - 2                       11 - 2                        6 - 2                        7 - 3                        6 - 3                        0 - 0                        2 - 0                        3 - 1                        4 - 3
23            carpet win - loss                        0 - 1                        0 - 1                        0 - 0                        0 - 0                        7 - 3                        1 - 1                        1 - 1                        0 - 0                        0 - 0                        0 - 0                        0 - 0
24              clay win - loss                        1 - 3                        0 - 2                        9 - 9                       13 - 5                        7 - 4                       12 - 7                        7 - 5                        3 - 2                       16 - 8                       12 - 7                       11 - 4
25           overall win - loss                        1 - 5                        2 - 8                      13 - 15                      33 - 11                      34 - 21                      49 - 24                      32 - 22                      22 - 15                      38 - 22                      34 - 20                      42 - 22
26                        win %                          17%                          20%                          46%                          75%                          62%                          67%                          59%                          59%                          63%                          63%                          66%
27             year end ranking                          161                           93                          107                           16                           18                            8                           24                           52                           30                           19                           10

Table as JSON:
{"tournament":{"0":"grand slam tournaments","1":"australian open","2":"french open","3":"wimbledon","4":"us open","5":"win - loss","6":"year - end championship","7":"atp world tour finals","8":"atp world tour masters 1000","9":"indian wells masters","10":"miami masters","11":"monte carlo masters","12":"madrid masters 1","13":"rome masters","14":"canada masters","15":"cincinnati masters","16":"shanghai masters 2","17":"paris masters","18":"win - loss","19":"career statistics","20":"titles - finals","21":"hardcourt win - loss","22":"grass win - loss","23":"carpet win - loss","24":"clay win - loss","25":"overall win - loss","26":"win %","27":"year end ranking"},"2002":{"0":"grand slam tournaments","1":"a","2":"1r","3":"a","4":"lq","5":"0 - 1","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"a","10":"a","11":"2r","12":"a","13":"a","14":"a","15":"a","16":"a","17":"lq","18":"1 - 1","19":"career statistics","20":"0 - 0","21":"0 - 0","22":"0 - 1","23":"0 - 1","24":"1 - 3","25":"1 - 5","26":"17%","27":"161"},"2003":{"0":"grand slam tournaments","1":"1r","2":"1r","3":"a","4":"a","5":"0 - 2","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"a","10":"1r","11":"1r","12":"a","13":"a","14":"a","15":"a","16":"a","17":"1r","18":"0 - 3","19":"career statistics","20":"0 - 0","21":"2 - 5","22":"0 - 0","23":"0 - 1","24":"0 - 2","25":"2 - 8","26":"20%","27":"93"},"2004":{"0":"grand slam tournaments","1":"1r","2":"1r","3":"1r","4":"lq","5":"0 - 3","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"a","10":"a","11":"lq","12":"a","13":"a","14":"a","15":"a","16":"a","17":"lq","18":"0 - 0","19":"career statistics","20":"0 - 1","21":"4 - 4","22":"0 - 2","23":"0 - 0","24":"9 - 9","25":"13 - 15","26":"46%","27":"107"},"2005":{"0":"grand slam tournaments","1":"a","2":"3r","3":"4r","4":"4r","5":"8 - 3","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"a","10":"a","11":"sf","12":"f","13":"2r","14":"2r","15":"2r","16":"a","17":"a","18":"12 - 5","19":"career statistics","20":"1 - 2","21":"7 - 4","22":"11 - 2","23":"0 - 0","24":"13 - 5","25":"33 - 11","26":"75%","27":"16"},"2006":{"0":"grand slam tournaments","1":"1r","2":"2r","3":"1r","4":"4r","5":"4 - 4","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"4r","10":"2r","11":"a","12":"1r","13":"a","14":"f","15":"1r","16":"2r","17":"3r","18":"9 - 6","19":"career statistics","20":"3 - 4","21":"14 - 12","22":"6 - 2","23":"7 - 3","24":"7 - 4","25":"34 - 21","26":"62%","27":"18"},"2007":{"0":"grand slam tournaments","1":"4r","2":"2r","3":"sf","4":"2r","5":"10 - 4","6":"year - end championship","7":"rr","8":"atp world tour masters 1000","9":"4r","10":"3r","11":"qf","12":"2r","13":"2r","14":"2r","15":"2r","16":"2r","17":"sf","18":"11 - 9","19":"career statistics","20":"1 - 3","21":"29 - 13","22":"7 - 3","23":"1 - 1","24":"12 - 7","25":"49 - 24","26":"67%","27":"8"},"2008":{"0":"grand slam tournaments","1":"4r","2":"a","3":"4r","4":"1r","5":"6 - 3","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"4r","10":"2r","11":"3r","12":"2r","13":"1r","14":"qf","15":"2r","16":"3r","17":"a","18":"8 - 8","19":"career statistics","20":"0 - 1","21":"18 - 13","22":"6 - 3","23":"1 - 1","24":"7 - 5","25":"32 - 22","26":"59%","27":"24"},"2009":{"0":"grand slam tournaments","1":"3r","2":"a","3":"a","4":"1r","5":"2 - 2","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"3r","10":"a","11":"a","12":"a","13":"3r","14":"a","15":"a","16":"1r","17":"a","18":"3 - 3","19":"career statistics","20":"0 - 0","21":"19 - 13","22":"0 - 0","23":"0 - 0","24":"3 - 2","25":"22 - 15","26":"59%","27":"52"},"2010":{"0":"grand slam tournaments","1":"1r","2":"1r","3":"a","4":"4r","5":"3 - 3","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"1r","10":"1r","11":"2r","12":"a","13":"a","14":"1r","15":"3r","16":"3r","17":"2r","18":"6 - 7","19":"career statistics","20":"1 - 3","21":"20 - 14","22":"2 - 0","23":"0 - 0","24":"16 - 8","25":"38 - 22","26":"63%","27":"30"},"2011":{"0":"grand slam tournaments","1":"3r","2":"4r","3":"4r","4":"2r","5":"9 - 4","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"qf","10":"3r","11":"3r","12":"1r","13":"sf","14":"3r","15":"3r","16":"a","17":"3r","18":"15 - 8","19":"career statistics","20":"0 - 0","21":"19 - 12","22":"3 - 1","23":"0 - 0","24":"12 - 7","25":"34 - 20","26":"63%","27":"19"},"2012":{"0":"grand slam tournaments","1":"4r","2":"4r","3":"4r","4":"4r","5":"12 - 4","6":"year - end championship","7":"did not qualify","8":"atp world tour masters 1000","9":"2r","10":"4r","11":"a","12":"3r","13":"qf","14":"f","15":"1r","16":"2r","17":"2r","18":"12 - 8","19":"career statistics","20":"1 - 3","21":"27 - 15","22":"4 - 3","23":"0 - 0","24":"11 - 4","25":"42 - 22","26":"66%","27":"10"}}