support query by group.