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

Question: What Outgoing manager left at his end of tenure as caretaker and was Replaced by Jesper Hansen?
SQL: SELECT "outgoing_manager" FROM "managerial_changes" WHERE "manner_of_departure"='end of tenure as caretaker' AND "replaced_by"='jesper hansen';

Question: What Team's Pre-Season Manager's manner of departure was the end of tenure as caretaker?
SQL: SELECT "team" FROM "managerial_changes" WHERE "position_in_table"='pre-season' AND "manner_of_departure"='end of tenure as caretaker';