CREATE TABLE "weekly_ratings" (
  "week" real,
  "sydney" real,
  "melbourne" real,
  "brisbane" real,
  "adelaide" real,
  "perth" real,
  "total" real,
  "weekly_rank" real
);

Question: How many episodes aired in Sydney in Week 3?
SQL: SELECT COUNT("sydney") FROM "weekly_ratings" WHERE "week"=3;

Question: How many viewers were there in Sydney for the episode when there were 334000 in Melbourne?
SQL: SELECT "sydney" FROM "weekly_ratings" WHERE "melbourne"=334000;

Question: How many Adelaide viewers were there in Week 5?
SQL: SELECT "adelaide" FROM "weekly_ratings" WHERE "week"=5;

Question: What is the highest number of Brisbane viewers?
SQL: SELECT MAX("brisbane") FROM "weekly_ratings";