Filtering by anything, regardless of it´s 1:n, n:1 or n:m, can directly be done in the corresponding query filters (in relationship inputs, lists, calenders and so on). In cases where you need to filter by multiple values, you might need to use the = ANY
or <> ALL
operators as well as sub queries.
As for examples, you will find them in pretty much all our public apps. Like in the app REI3 Tasks, on the task form for the task owner input: