Consider the following premises. John is cooking or James is not a mechanic. John is not cooking. If Sarah were a soldier, then James is a mechanic. Can we infer the following from them? Sarah is a soldier.
 From the fact that John is cooking or James is not a mechanic we can infer that if James were a mechanic, then John is cooking. From the fact that if James were a mechanic, then John is cooking, and that John is not cooking we can infer that James is not a mechanic. Finally, from the fact that if Sarah were a soldier, then James is a mechanic, and that James is not a mechanic we can infer that Sarah is not a soldier, which contradicts that Sarah is a soldier. Therefore, the answer is no.