Translate the following inference to logic notation: James is listening to a song or John is a lawyer. For all x, x_7 is an electrician or x_7 will not listen to a song. If John were a lawyer, then James is an electrician. Therefore James is an electrician.
P(a) or p. forall x: Q(x) or ~P(x). p -> Q(a). Therefore Q(a).