user: Question: What are all the states (class) when the successor was Joseph Anderson ( DR )?
Columns: ['State (class)', 'Vacator', 'Reason for change', 'Successor', 'Date of successors formal installation']
Types: ['text', 'text', 'text', 'text', 'text']
Sample row: ['Tennessee (1)', 'Vacant', 'Tennessee failed to elect a Senator on time', 'William Cocke ( DR )', 'Appointed May 15, 1797']
SQL:

assistant: SELECT "State (class)" FROM "Table" WHERE "Successor" = 'Joseph Anderson ( DR )';