Instruct: What is the total number of games with more than 18 loses, a Total League, and more than 317 draws?
Output: SELECT COUNT total games FROM table WHERE Loss > 18 AND League = total AND Draw > 317