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

Question: How many goals were scored by the team that played less than 38 games, and had points of 47+9?
SQL: SELECT MAX("goals_for") FROM "final_table" WHERE "points"='47+9' AND "played"<38;

Question: What is the average wins of the team with more than 13 draws, a goal difference of -14, and losses less than 14?
SQL: SELECT AVG("wins") FROM "final_table" WHERE "draws">13 AND "goal_difference"=-14 AND "losses"<14;

Question: In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins?
SQL: SELECT "points" FROM "final_table" WHERE "goal_difference"<38 AND "wins"=12 AND "club"='real oviedo';