CREATE TABLE "relegation_playoffs" (
  "team_1" text,
  "agg" text,
  "team_2" text,
  "1st_leg" text,
  "2nd_leg" text
);

Question: Who is team 2 with a 2nd leg of 0-2?
SQL: SELECT "team_2" FROM "relegation_playoffs" WHERE "2nd_leg"='0-2';

Question: Who is team 1 with an agg of 2-5?
SQL: SELECT "team_1" FROM "relegation_playoffs" WHERE "agg"='2-5';