Added `addAggs()` method Query. Fixes #4451