SELECT "categoryId", COUNT(*) AS product_count FROM product_model GROUP BY "categoryId" HAVING product_count > 5 ORDER BY product_count ASC;
SELECT categoryId, COUNT(*) AS product_count
FROM product_model
GROUP BY categoryId
HAVING COUNT(*) > 5
ORDER BY product_count