CREATE TABLE "group_ii" (
  "position" real,
  "club" text,
  "played" real,
  "points" real,
  "wins" real,
  "draws" real,
  "losses" real,
  "goals_for" real,
  "goals_against" real,
  "goal_difference" real
);

Question: What is the highest goal difference of the club with more than 34 played?
SQL: SELECT MAX("goal_difference") FROM "group_ii" WHERE "played">34;

Question: What is the total number of points of the club with a goal difference greater than 17 and more than 34 played?
SQL: SELECT COUNT("points") FROM "group_ii" WHERE "goal_difference">17 AND "played">34;

Question: What is the lowest goal difference of club real betis, who has less than 18 wins?
SQL: SELECT MIN("goal_difference") FROM "group_ii" WHERE "club"='real betis' AND "wins"<18;

Question: What is the sum of the points of the club with more than 34 played?
SQL: SELECT SUM("points") FROM "group_ii" WHERE "played">34;

Question: What is the lowest number played of the club with more than 15 wins and less than 42 goals against?
SQL: SELECT MIN("played") FROM "group_ii" WHERE "wins">15 AND "goals_against"<42;

Question: What is the total number of wins of the club with a goal difference less than 21, 4 draws, and less than 21 losses?
SQL: SELECT COUNT("wins") FROM "group_ii" WHERE "goal_difference"<21 AND "draws"=4 AND "losses"<21;