get groups by competition