o
|   u   v   w   |   u &amp; v   |   u &amp; w   |   v &amp; w   |   q   |
o---------------o-----------o-----------o-----------o-------o
|               |           |           |           |       |
|   0   0   0   |     0     |     0     |     0     |   0   |
|               |           |           |           |       |
|   0   0   1   |     0     |     0     |     0     |   0   |
|               |           |           |           |       |
|   0   1   0   |     0     |     0     |     0     |   0   |
| 