Filter combination of ands/ors

See if this gives you some ideas: