How aggregation functions work? - TanStack