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?
SELECT MAX Losses FROM table WHERE Goals against > 31 AND Goals for = 38 AND Club = cf calvo sotelo AND Played < 30