Getting status with aggregation queries