How many positions have goals of fewer than 40 and more than 38 played?
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
);
SELECT COUNT("position") FROM "final_table" WHERE "goals_for"<40 AND "played">38;