Se il filtro è in una tabella, puoi usare NOT EXISTS annidati.
SELECT *
FROM product p
WHERE NOT EXISTS (
SELECT 1
FROM attributes a
WHERE a.product_id = p.product_id
AND NOT EXISTS (
SELECT 1
FROM filter f
WHERE f.id_attribute = a.id_attribute
)
);Se il filtro è una lista costruita, puoi usare NOT IN.