tournament                     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
1           australian open                        a                       2r                       1r                       2r                       3r                       1r
2               french open                       2r                       2r                       2r                       1r                       2r                       1r
3                 wimbledon                       1r                       qf                       1r                       qf                       3r                       1r
4                   us open                       2r                       1r                       2r                       sf                       3r                       sf
5                win - loss                    2 - 3                    5 - 4                    2 - 3                    8 - 4                    7 - 2                    4 - 4
6   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                        a                        a                        a                        a                        a                        w
8   atp masters series 1000  atp masters series 1000  atp masters series 1000  atp masters series 1000  atp masters series 1000  atp masters series 1000  atp masters series 1000
9              indian wells                        a                        a                        a                        a                       1r                       2r
10                    miami                        a                        a                        a                        a                       1r                       2r
11              monte carlo                        a                        a                        a                       1r                       qf                       sf
12                     rome                        a                        a                        a                        a                       qf                        w
13            madrid (clay)               as hamburg               as hamburg                       qf                       sf                       2r                       qf
14                   canada                        a                        a                        a                        a                        a                        f
15               cincinnati                        a                        a                        a                        a                        a                       qf
16            madrid (hard)                        a                       qf         held as shanghai         held as shanghai         held as shanghai         held as shanghai
17                 shanghai                 not held                 not held                        a                        a                        a                       2r
18                    paris                        a                        a                        f                       1r                        a                        a
19               win - loss                    0 - 0                    2 - 1                    6 - 2                    5 - 4                    4 - 4                   16 - 6

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 masters series 1000","9":"indian wells","10":"miami","11":"monte carlo","12":"rome","13":"madrid (clay)","14":"canada","15":"cincinnati","16":"madrid (hard)","17":"shanghai","18":"paris","19":"win - loss"},"2007":{"0":"grand slam tournaments","1":"a","2":"2r","3":"1r","4":"2r","5":"2 - 3","6":"year - end championship","7":"a","8":"atp masters series 1000","9":"a","10":"a","11":"a","12":"a","13":"as hamburg","14":"a","15":"a","16":"a","17":"not held","18":"a","19":"0 - 0"},"2008":{"0":"grand slam tournaments","1":"2r","2":"2r","3":"qf","4":"1r","5":"5 - 4","6":"year - end championship","7":"a","8":"atp masters series 1000","9":"a","10":"a","11":"a","12":"a","13":"as hamburg","14":"a","15":"a","16":"qf","17":"not held","18":"a","19":"2 - 1"},"2009":{"0":"grand slam tournaments","1":"1r","2":"2r","3":"1r","4":"2r","5":"2 - 3","6":"year - end championship","7":"a","8":"atp masters series 1000","9":"a","10":"a","11":"a","12":"a","13":"qf","14":"a","15":"a","16":"held as shanghai","17":"a","18":"f","19":"6 - 2"},"2010":{"0":"grand slam tournaments","1":"2r","2":"1r","3":"qf","4":"sf","5":"8 - 4","6":"year - end championship","7":"a","8":"atp masters series 1000","9":"a","10":"a","11":"1r","12":"a","13":"sf","14":"a","15":"a","16":"held as shanghai","17":"a","18":"1r","19":"5 - 4"},"2011":{"0":"grand slam tournaments","1":"3r","2":"2r","3":"3r","4":"3r","5":"7 - 2","6":"year - end championship","7":"a","8":"atp masters series 1000","9":"1r","10":"1r","11":"qf","12":"qf","13":"2r","14":"a","15":"a","16":"held as shanghai","17":"a","18":"a","19":"4 - 4"},"2012":{"0":"grand slam tournaments","1":"1r","2":"1r","3":"1r","4":"sf","5":"4 - 4","6":"year - end championship","7":"w","8":"atp masters series 1000","9":"2r","10":"2r","11":"sf","12":"w","13":"qf","14":"f","15":"qf","16":"held as shanghai","17":"2r","18":"a","19":"16 - 6"}}