I would like to query products by different filters and criteria so I have written multiple queries for my frontend for each case (shown below). Is there a way I can write a