CREATE TABLE "apertura_2007_standings" (
  "place" real,
  "team" text,
  "played" real,
  "draw" real,
  "lost" real,
  "goals_scored" real,
  "goals_conceded" real,
  "points" real
);

Question: What was the highest number played when there were 21 goals conceded and a draw greater than 3?
SQL: SELECT MAX("played") FROM "apertura_2007_standings" WHERE "goals_conceded"=21 AND "draw">3;

Question: What were the total number of points when the amount of goals scored was less than 20?
SQL: SELECT COUNT("points") FROM "apertura_2007_standings" WHERE "goals_scored"<20;

Question: What were the total number of points when there was a lost larger than 6, when the team was Once Municipal, and when the number of goals scored was less than 8?
SQL: SELECT COUNT("points") FROM "apertura_2007_standings" WHERE "lost">6 AND "team"='once municipal' AND "goals_scored"<8;

Question: What was the highest number of points scored when there was a draw of 2 and when the amount played was 18?
SQL: SELECT MAX("points") FROM "apertura_2007_standings" WHERE "draw"=2 AND "played"<18;

Question: What was the total number of places in which the draw was less than 4 and the amount lost was less than 6?
SQL: SELECT COUNT("place") FROM "apertura_2007_standings" WHERE "draw"<4 AND "lost"<6;