Filtering by M:N relations

Hello,
does anybody have an idea how to do that?
Let’s say I have these tables:

  • CUSTOMER
  • TAG
  • CUSTOMER_HAS_TAG

I would like to be able to filter the customers based on the tags they have.

I know how to do this in SQL but I would like this to be available in the querybuilder-based questions.

Any ideas?

Thank you!