human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: State (class), Vacator, Reason for change, Successor, Date of successors formal installation
###Question: What are all the states (class) when the successor was Joseph Anderson ( DR )?
gpt
SELECT State (class) FROM table WHERE Successor = Joseph Anderson ( DR )