GROUP BY collapses your rows into groups and aggregates each metric within them. List one or more dimensions, separated by commas, and every metric in SHOW is totalled per group.
Top N per dimension
Prefix a dimension withONLY TOP <n> to keep just its highest-ranking values. This is handy on a two-dimension breakdown where you want, say, the top five vendors but every product type within them.

