Filtering groups in TUI

Hello, I was wondering how can I use the filtering group option in TUI.

In GUI is simple - I just impose a condition greater than, but I see no option in the documentation for the script part. I tried even the dump option hoping that I will get a hint, but in the dumped script the groups are selected by their numbers and not by the imposed filter.

Thank you for your help.