Efficient Algorithms for Empirical Group Distributional Robust Optimization and Beyond