How to get the output for two list of items separately in query rule

Certified Senior Developer

Hi 

In below query rule i am passing 2 and 3 product ids so it was returning both 2 and 3 product id's email id's but i want 2 product  id email ids in one list and 3 product id email ids separately means like two list of usernames separately could you please suggest on this 

  Discussion posts and replies are publicly visible