support $min, $max operator for group