added function for filtering subcategories by multiple supercategories