Suppose we have a collection called orders that contains documents with the following fields: _id, customer, date, total.
We want to group the orders by customer and calculate the total amount spent by each customer.
Chose the box with correct aggregation pipeline: