Identify the logic gates marked P and Q in the given circuit. Write the truth table for the combination

Identify the logic gates marked P and Q in the given circuit. Write the truth table for the combination.

The logic gate P is NAND gate and Q is OR gate. The truth table is given by