Table:
text: 5th United States Congress
Senate
Senate
State_class Vacator Reason_for_change Successor Date_of_successors_formal_installation
Tennessee (1) Vacant Tennessee failed to elect a Senator on time William Cocke ( DR ) Appointed May 15, 1797
Tennessee (2) William Blount ( DR ) Expelled July 8, 1797 Joseph Anderson ( DR ) Elected September 26, 1797
Tennessee (1) William Cocke ( DR ) Interim appointment until September 26, 1797 Andrew Jackson ( DR ) Elected September 26, 1797
Rhode Island (2) William Bradford ( F ) Resigned sometime in October, 1797 Ray Greene ( F ) Elected November 13, 1797

Question: What are all states (classes) in the 5th United States Congress when the successor was Joseph Anderson (DR)?