We've long had a goal of creating "Query Groups," where you would be able to store a query function in a group, and when that group is called, it returns the appropriate query results for that moment. Once these are implemented, you'll be able to map those to direct selects the way you would with groups now.
[EOS-33122] Groups: store query condition to a group