I suspect that you're trying to over-complicate things and your filter expression could be created without too much fuss. Have you just tried to create a filter with the required expression?
If so, what results did you get?
If not, why not?
Other ...
If so, what results did you get?
If not, why not?
Other ...