Added nested aggregation (DONE ALL QUERIES)