how would I use the two fields in Grouping and Filtering > Query filter?

I'd like to use the selector syntax from here in my search
thanks
EDIT 1
OK separation works as "=", like

is there a smarter way of using the Query filter? in the example above I could just use Attribute to get the same output
EDIT 2
OK I can use REGEX, so to select two types of a beam named "BEM-01" and "BEM-03" I can do like:

nice feature!
thanks again