Filtering by M:N relations

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

  • 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!