Exclude categories and subcategories in QueryLoop

How about something like this where you filter the posts once the WP_Query gets them?