CREATE TABLE "second_semester" (
  "day_1" text,
  "day_2" text,
  "day_3" text,
  "day_4" text,
  "day_5" text,
  "wednesday" text
);

Question: What is the Wednesday when day 3 is math?
SQL: SELECT "wednesday" FROM "second_semester" WHERE "day_3"='math';

Question: What is the day 1 when the day 3 is math?
SQL: SELECT "day_1" FROM "second_semester" WHERE "day_3"='math';

Question: What is the day 1 when day 5 is math?
SQL: SELECT "day_1" FROM "second_semester" WHERE "day_5"='math';

Question: What is the day 3 when day 4 is fr.?
SQL: SELECT "day_3" FROM "second_semester" WHERE "day_4"='fr.';