NOT A and NOT B is logically identical to NOT (A or B) and neither is the same as NOT (A and B).
NOT (A and B) is however the same as NOT A or NOT B.
NOT (A and B) in your case means all books that do not have Apples or do not have Oranges in their tag list, which if I am reading your example correctly is three books, as expected.
|