user: ### NOW ANSWER:
Question: What is the total number of goals when there are 3 draws, more than 18 losses, and played is smaller than 38?
Columns: ['Position', 'Club', 'Played', 'Points', 'Wins', 'Draws', 'Losses', 'Goals for', 'Goals against', 'Goal Difference']
Types: ['real', 'text', 'real', 'real', 'real', 'real', 'real', 'real', 'real', 'real']
Sample row: [1.0, 'Granada CF', 38.0, 47.0, 22.0, 3.0, 13.0, 79.0, 45.0, 34.0]
SQL:

assistant: SELECT COUNT("Goals for") FROM "Table" WHERE "Draws" = 3.0 AND "Losses" > 18.0 AND "Played" < 38.0;