CREATE TABLE "2007" (
  "sydney" text,
  "melbourne" text,
  "perth" text,
  "adelaide" text,
  "gold_coast" text,
  "auckland" text
);

Question: Name the melbourne with perth, adelaide and auckland of no with sydney of yes
SQL: SELECT "melbourne" FROM "2007" WHERE "perth"='no' AND "adelaide"='no' AND "auckland"='no' AND "sydney"='yes';

Question: Name the gold coast which has an auckland of no and melbourne of yes
SQL: SELECT "gold_coast" FROM "2007" WHERE "auckland"='no' AND "melbourne"='yes';

Question: Name the sydney with perth of no, adelaide of no with melbourne of yes and gold coast of yes
SQL: SELECT "sydney" FROM "2007" WHERE "perth"='no' AND "adelaide"='no' AND "melbourne"='yes' AND "gold_coast"='yes';

Question: Name the Adelaide for Sydney of yes and Perth of yes
SQL: SELECT "adelaide" FROM "2007" WHERE "sydney"='yes' AND "perth"='yes';

Question: Name the melbourne for adelaide of no with auckland of yes and gold coast of yes
SQL: SELECT "melbourne" FROM "2007" WHERE "adelaide"='no' AND "auckland"='yes' AND "gold_coast"='no';