SUM adds the integer quantity cells inside each bucket.
sum integer cells
Add quantities
The output has 3 grouped sums.
sum rows=3
Grouping examples are tiny finite table transforms; SQL dialects, NULLs, AVG/rounding, planner behavior, indexes, performance, and product behavior are out of scope.
Read the source rows
The bucket table shows exactly which source rows contributed to each total.