AND

This is the truth table for pq:
pqpq 111 100 010 000

OR

This is the truth table for pq:
pqpq 111 101 011 000

XOR, NAND, NOR and XNOR

This is the truth table for the logical connectives XOR, NAND, NOR and XNOR.
pqpXORqpNANDqpNORqpXNORq 110001 101100 011100 000111