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

Question: What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
SQL: SELECT AVG("goals_for") FROM "final_table" WHERE "goal_difference"=8 AND "losses"<12;

Question: How many goals have a Lokomotiv Plovdiv club and goals against larger than 58?
SQL: SELECT COUNT("goals_for") FROM "final_table" WHERE "club"='lokomotiv plovdiv' AND "goals_against">58;

Question: What is the average goal difference using slavia sofia club?
SQL: SELECT AVG("goal_difference") FROM "final_table" WHERE "club"='slavia sofia';

Question: What is the played average that has botev plovdiv as the club and wins larger than 11?
SQL: SELECT AVG("played") FROM "final_table" WHERE "club"='botev plovdiv' AND "wins">11;