removed TEAM_MES from query