Logic gate diagram for $F = (P' + S)(P + Q' + S')(Q' + R' + S')$: one 2-input OR gate with inputs (P', S) and two 3-input OR gates with inputs (P, Q', S') and (Q', R', S') feed a 3-input AND gate whose output is F. The complemented inputs P', Q', R', S' are taken directly as inputs.