Consider the following premises. If Jessica were happy, then Jessica is sleeping. If Jessica sleeps, then Karen is drinking water. If it rains, then Jessica is happy. If Karen drinks water, then it is raining. Can we infer the following from them? Jessica is sleeping if and only if it is raining.
 From the fact that if it rains, then Jessica is happy, and that if Jessica were happy, then Jessica is sleeping we can infer that if it rains, then Jessica is sleeping. From the fact that if Jessica sleeps, then Karen is drinking water, and that if Karen drinks water, then it is raining we can infer that if Jessica sleeps, then it is raining. Finally, from the fact that if Jessica sleeps, then it is raining, and that if it rains, then Jessica is sleeping we can infer that Jessica is sleeping if and only if it is raining. Therefore, the answer is yes.