And state tax levies are not included unless issued by a court.
As for the sub account issue, here's some helpful text from page 9941 of the
Federal Register:
[The] Agencies have refined the definition of account to include any account, whether classified as a master account or a sub account, to which an electronic payment may be directly routed. This clarifies, for example, how the definition would apply to credit union accounting structures where there is a main member number under which there are individual transactional accounts.
So, if the depositor can receive direct deposits to more than one sub account, you have to do the analysis per sub account.
If your system allows you to aggregate sub accounts for research, showing all activity for the full collection of sub accounts, doing the analysis at the master account level could give you different results for a determination of protected balances, particularly if one or more of the sub accounts is overdrawn at the time (the master account probably reflects a net positive balance). Keep your analysis at the sub account level to ensure that you don't report the wrong protected balance amount(s).