What is the sum of the dates in december that were against the atlanta flames before game 40?
CREATE TABLE "schedule_and_results" (
  "game" real,
  "december" real,
  "opponent" text,
  "score" text,
  "record" text
);
SELECT SUM("december") FROM "schedule_and_results" WHERE "opponent"='atlanta flames' AND "game"<40;