Consider the following premises. For all x_7, x_7 will cook. For all x_7, if x_7 plays squash, then x_7 is not cooking. For all x_7, if x_7 plays squash, then x_7 is sad. For all x_7, x_7 is sad if and only if x_7 will play squash. Can we infer the following from them? For all x_7, if x_7 plays squash, then x_7 is not cooking.
That is one of the premises. Therefore, the answer is yes.