A programmable logic array (PLA) is shown in the figure.

The Boolean function F implemented is

1. $\bar{P}\bar{Q}R+\bar{P}QR+P\bar{Q}\bar{R}$
2. $(\bar{P}+\bar{Q}+R)(\bar{P}+Q+R)(P+\bar{Q}+\bar{R})$
3. $\bar{P}\bar{Q}R+\bar{P}QR+P\bar{Q}R$
4. $(\bar{P}+\bar{Q}+R)(\bar{P}+Q+R)(P+\bar{Q}+R)$

recategorized