Identifying the logic function of this specific MOS layout
Your truth table for the circuit is correct, but your logic expression does not describe the table.

Try writing out the truth table for the expression and comparing it to the one for the circuit.