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

Question: What is the highest Wins, when Goals For is greater than 39, and when Points is less than 25?
SQL: SELECT MAX("wins") FROM "group_i" WHERE "goals_for">39 AND "points"<25;

Question: What is the total number of Goals For, when Losses is greater than 16?
SQL: SELECT COUNT("goals_for") FROM "group_i" WHERE "losses">16;

Question: What is the average Position, when Goal Difference is "17", and when Wins is greater than 13?
SQL: SELECT AVG("position") FROM "group_i" WHERE "goal_difference"=17 AND "wins">13;

Question: What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?
SQL: SELECT MIN("goals_for") FROM "group_i" WHERE "draws"<4 AND "points"<27;