Create a new design rule directly from the PCB Filter panel - the filter query expression is used as the scope for the rule.