user: ### NOW ANSWER:
Question: What is the highest number of losses of club cf calvo sotelo, which has more than 31 goals against, 38 goals for, and less than 30 played?
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, 'Real Sociedad', 30.0, 46.0, 21.0, 4.0, 5.0, 46.0, 22.0, 24.0]
SQL:

assistant: SELECT MAX("Losses") FROM "Table" WHERE "Goals against" > 31.0 AND "Goals for" = 38.0 AND "Club" = 'cf calvo sotelo' AND "Played" < 30.0;