Instruct: What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?
Output: SELECT COUNT Goals for FROM table WHERE Draws = 3 AND Losses > 18 AND Played < 38