CREATE TABLE "managerial_changes" (
  "team" text,
  "outgoing_manager" text,
  "manner_of_departure" text,
  "date_of_vacancy" text,
  "replaced_by" text,
  "date_of_appointment" text
);

Question: Who was the outgoing manager of the Heart of Midlothian?
SQL: SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='heart of midlothian';

Question: What is the vacancy date of Dundee?
SQL: SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='dundee';

Question: Who was the outgoing manager that was replaced by Tony Mowbray?
SQL: SELECT "outgoing_manager" FROM "managerial_changes" WHERE "replaced_by"='tony mowbray';

Question: What date was Dundee appointed?
SQL: SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='dundee';