CREATE TABLE table_name_26 (total_games VARCHAR(255), draw VARCHAR(255), loss VARCHAR(255), league VARCHAR(255))
What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?
    
SQL: SELECT COUNT(total_games) FROM table_name_26 WHERE loss > 18 AND league = "total" AND draw > 317