CREATE TABLE "by_season" (
  "season" text,
  "1st_place" text,
  "2nd_place" text,
  "3rd_place" text,
  "4th_place" text
);

Question: Who was the 3rd place team in the season in which Real Madrid finished 2nd?
SQL: SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='real madrid';

Question: Which season had a 3rd place of CSKA Moscow and 1st place of Panathinaikos?
SQL: SELECT "season" FROM "by_season" WHERE "3rd_place"='cska moscow' AND "1st_place"='panathinaikos';