CREATE TABLE "ratings" (
  "season" real,
  "season_premiere" text,
  "season_finale" text,
  "tv_season" text,
  "viewer_rank_num" text,
  "households_viewers_in_millions" real
);

Question: What season had a viewer rank of #4?
SQL: SELECT COUNT("season") FROM "ratings" WHERE "viewer_rank_num"='#4';

Question: Which season had less than 25.4 viewers and had a viewer rank of #6?
SQL: SELECT MIN("season") FROM "ratings" WHERE "households_viewers_in_millions"<25.4 AND "viewer_rank_num"='#6';

Question: When did the season premiere that had a viewer rank of #6?
SQL: SELECT "season_premiere" FROM "ratings" WHERE "viewer_rank_num"='#6';