I’ve done an example of making a Filter with SuperTool:
Also, using the Filter+ replacements for the various Filter Gramplets can be used as a template. While the Define filter scrapes the parameters entered for the various fields… so exploring the new (as yet unnamed) Custom Filter also exposes the pertinent rules (and the combination of rules) needed to search for a particular item.