min, max, sum in implicit group