CREATE TABLE "u_s_nielsen_ratings" (
  "episode_number" real,
  "episode" text,
  "rating" real,
  "share" real,
  "rating_share_18_49" text,
  "viewers_millions" real,
  "rank_overall" text
);

Question: WHAT IS THE RATING THAT HAD A SHARE SMALLER THAN 4, AND 2.47 MILLION VIEWERS?
SQL: SELECT COUNT("rating") FROM "u_s_nielsen_ratings" WHERE "share"<4 AND "viewers_millions">2.47;

Question: WHAT IS THE NUMBER OF VIEWERS WITH EPISODE LARGER THAN 10, RATING SMALLER THAN 2?
SQL: SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode_number">10 AND "rating"<2;

Question: WHAT IS THE HIGHEST VIEWERS WITH AN EPISODE LESS THAN 15 AND SHARE LAGER THAN 7?
SQL: SELECT MAX("viewers_millions") FROM "u_s_nielsen_ratings" WHERE "episode_number"<15 AND "share">7;