CREATE TABLE "senate" (
  "state_class" text,
  "vacator" text,
  "reason_for_change" text,
  "successor" text,
  "date_of_successors_formal_installation" text
);

Question: What is the number of vacators when the successor was William H. Wells ( F )?
SQL: SELECT COUNT("vacator") FROM "senate" WHERE "successor"='William H. Wells ( F )';

Question: What is the total number of dates of successor formal installation when the vacator was Joshua Clayton ( F )?
SQL: SELECT COUNT("date_of_successors_formal_installation") FROM "senate" WHERE "vacator"='Joshua Clayton ( F )';

Question: What is the total number of successors when the vacator was William North ( F )
SQL: SELECT COUNT("successor") FROM "senate" WHERE "vacator"='William North ( F )';

Question: What are all the states (class) when the successor was Joseph Anderson ( DR )?
SQL: SELECT "state_class" FROM "senate" WHERE "successor"='Joseph Anderson ( DR )';

Question: What are all the states (class) when the reason for change was resigned November 26, 1798 and the vacator was John Hunter ( DR )?
SQL: SELECT "state_class" FROM "senate" WHERE "reason_for_change"='Resigned November 26, 1798' AND "vacator"='John Hunter ( DR )';