In reply to David Birch.

David,

Sure, here are a few screens from EG 4.1:

Defining the query with an aggregate, and having at least one GROUP variable
Adding a filter via the "Filter on summarized data"
Generated SAS program as a result