CREATE TABLE "water_parks_in_terms_of_attendance" (
  "rank" real,
  "water_park" text,
  "location" text,
  "2011" real,
  "2012" real
);

Question: what is the water park with the rank 20?
SQL: SELECT "water_park" FROM "water_parks_in_terms_of_attendance" WHERE "rank"=20;

Question: what is 2011 when the rank is less than 8 and the water park is ocean world?
SQL: SELECT SUM("2011") FROM "water_parks_in_terms_of_attendance" WHERE "rank"<8 AND "water_park"='ocean world';

Question: what is the lowest 2011 for sunway lagoon water park and 2012 is less than 1,200,000?
SQL: SELECT MIN("2011") FROM "water_parks_in_terms_of_attendance" WHERE "water_park"='sunway lagoon' AND "2012"<'1,200,000';