An aggregate turns a sequence into one value and runs the query immediately. Sum(o => o.Total), Count(o => o.Region == "North"), Average, Min and Max all take an optional selector.
Empty sequences are where aggregates differ: Sum and Count return 0, but Average, Min and Max over an empty sequence of numbers throw InvalidOperationException. Guard with Any(), or use DefaultIfEmpty() first.
MaxBy(o => o.Total) returns the whole item with the largest key, not just the key, which saves a second search. Any(predicate) asks whether at least one item matches and stops at the first; All(predicate) is true when every item matches, and is true for an empty sequence. Aggregate folds a sequence with your own function when none of these fit.
Common aggregates, with the empty cases handled.