4. Advanced aggregation and analysis of data