CREATE TABLE "season_ratings" (
  "season" text,
  "ep_num" real,
  "season_premiere" text,
  "season_finale" text,
  "ranking" text,
  "viewers_households_in_millions" text,
  "rating" text
);

Question: What was the ranking for the episode number before 24 that had a rating of 25.7?
SQL: SELECT "ranking" FROM "season_ratings" WHERE "ep_num"<24 AND "rating"='25.7';

Question: How many million viewers watched the season finale on March 12, 1979?
SQL: SELECT "viewers_households_in_millions" FROM "season_ratings" WHERE "season_finale"='march 12, 1979';

Question: What is the rating of the season 10?
SQL: SELECT "rating" FROM "season_ratings" WHERE "season"='season 10';

Question: What was the rating of the season that had 18.17 million household viewers?
SQL: SELECT "rating" FROM "season_ratings" WHERE "viewers_households_in_millions"='18.17';