What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?
CREATE TABLE "all_time_table" (
  "league" text,
  "number_of_seasons" real,
  "total_games" real,
  "draw" real,
  "loss" real
);
SELECT COUNT("total_games") FROM "all_time_table" WHERE "loss">18 AND "league"='total' AND "draw">317;