Determining the proper conditions for product categories when we are looking for a customer who purchased all of the provided category IDs is tricky because we need to account for the hierarchical nature of these categories. In order to avoid more complex logic, I decided to apply the ANY logic for each individual category ID and then return the intersection of those queries. MAILPOET-5264