-- =============================================
-- 武术赛事管理系统 - 集体项目测试数据
-- =============================================
-- 说明：
-- 1. 生成100个集体项目队伍（500人）
-- 2. 5个集体项目类型，每个项目20个队伍
-- 3. 每个队伍5人
-- 4. 赛事ID: 200（郑州协会全国运动大赛）
-- =============================================

USE martial_competition;

-- 先创建集体项目（如果不存在）
INSERT IGNORE INTO martial_project (id, project_name, type, category, estimated_duration, create_time)
VALUES
  (1001, '太极拳集体', 2, '成年组', 5, NOW()),
  (1002, '长拳集体', 2, '成年组', 5, NOW()),
  (1003, '剑术集体', 2, '成年组', 5, NOW()),
  (1004, '刀术集体', 2, '成年组', 5, NOW()),
  (1005, '棍术集体', 2, '少年组', 5, NOW());

-- =============================================
-- 1. 太极拳集体（20个队伍，100人）
-- =============================================

-- 队伍1:少林寺武校
INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
VALUES
  (200, 1001, '少林寺武校', '少林寺武校', '张明远', '男', 25, '13800001001', NOW()),
  (200, 1001, '少林寺武校', '少林寺武校', '李华强', '男', 26, '13800001002', NOW()),
  (200, 1001, '少林寺武校', '少林寺武校', '王建国', '男', 24, '13800001003', NOW()),
  (200, 1001, '少林寺武校', '少林寺武校', '赵小明', '男', 23, '13800001004', NOW()),
  (200, 1001, '少林寺武校', '少林寺武校', '刘德华', '男', 27, '13800001005', NOW());

-- 队伍2：武当派
INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
VALUES
  (200, 1001, '武当派', '武当派', '陈剑锋', '男', 28, '13800001011', NOW()),
  (200, 1001, '武当派', '武当派', '周杰伦', '男', 25, '13800001012', NOW()),
  (200, 1001, '武当派', '武当派', '吴彦祖', '男', 26, '13800001013', NOW()),
  (200, 1001, '武当派', '武当派', '郑伊健', '男', 24, '13800001014', NOW()),
  (200, 1001, '武当派', '武当派', '谢霆锋', '男', 27, '13800001015', NOW());

-- 队伍3：洛阳武校
INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
VALUES
  (200, 1001, '洛阳武校', '洛阳武校', '孙悟空', '男', 29, '13800001021', NOW()),
  (200, 1001, '洛阳武校', '洛阳武校', '猪八戒', '男', 30, '13800001022', NOW()),
  (200, 1001, '洛阳武校', '洛阳武校', '沙悟净', '男', 28, '13800001023', NOW()),
  (200, 1001, '洛阳武校', '洛阳武校', '唐三藏', '男', 26, '13800001024', NOW()),
  (200, 1001, '洛阳武校', '洛阳武校', '白龙马', '男', 25, '13800001025', NOW());

-- 队伍4：峨眉派
INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
VALUES
  (200, 1001, '峨眉派', '峨眉派', '小龙女', '女', 22, '13800001031', NOW()),
  (200, 1001, '峨眉派', '峨眉派', '黄蓉', '女', 23, '13800001032', NOW()),
  (200, 1001, '峨眉派', '峨眉派', '赵敏', '女', 24, '13800001033', NOW()),
  (200, 1001, '峨眉派', '峨眉派', '周芷若', '女', 22, '13800001034', NOW()),
  (200, 1001, '峨眉派', '峨眉派', '任盈盈', '女', 23, '13800001035', NOW());

-- 队伍5：华山派
INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
VALUES
  (200, 1001, '华山派', '华山派', '令狐冲', '男', 27, '13800001041', NOW()),
  (200, 1001, '华山派', '华山派', '风清扬', '男', 28, '13800001042', NOW()),
  (200, 1001, '华山派', '华山派', '岳不群', '男', 29, '13800001043', NOW()),
  (200, 1001, '华山派', '华山派', '宁中则', '女', 26, '13800001044', NOW()),
  (200, 1001, '华山派', '华山派', '岳灵珊', '女', 24, '13800001045', NOW());

-- 队伍6-20：继续生成太极拳集体队伍
INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
SELECT 200, 1001, CONCAT('太极队', num), CONCAT('太极队', num), CONCAT('队员', member_num),
       IF(member_num % 2 = 0, '男', '女'), 20 + (num % 10), CONCAT('1380000', 1050 + (num-6)*5 + member_num), NOW()
FROM (
  SELECT 6 AS num, 1 AS member_num UNION ALL SELECT 6, 2 UNION ALL SELECT 6, 3 UNION ALL SELECT 6, 4 UNION ALL SELECT 6, 5 UNION ALL
  SELECT 7, 1 UNION ALL SELECT 7, 2 UNION ALL SELECT 7, 3 UNION ALL SELECT 7, 4 UNION ALL SELECT 7, 5 UNION ALL
  SELECT 8, 1 UNION ALL SELECT 8, 2 UNION ALL SELECT 8, 3 UNION ALL SELECT 8, 4 UNION ALL SELECT 8, 5 UNION ALL
  SELECT 9, 1 UNION ALL SELECT 9, 2 UNION ALL SELECT 9, 3 UNION ALL SELECT 9, 4 UNION ALL SELECT 9, 5 UNION ALL
  SELECT 10, 1 UNION ALL SELECT 10, 2 UNION ALL SELECT 10, 3 UNION ALL SELECT 10, 4 UNION ALL SELECT 10, 5 UNION ALL
  SELECT 11, 1 UNION ALL SELECT 11, 2 UNION ALL SELECT 11, 3 UNION ALL SELECT 11, 4 UNION ALL SELECT 11, 5 UNION ALL
  SELECT 12, 1 UNION ALL SELECT 12, 2 UNION ALL SELECT 12, 3 UNION ALL SELECT 12, 4 UNION ALL SELECT 12, 5 UNION ALL
  SELECT 13, 1 UNION ALL SELECT 13, 2 UNION ALL SELECT 13, 3 UNION ALL SELECT 13, 4 UNION ALL SELECT 13, 5 UNION ALL
  SELECT 14, 1 UNION ALL SELECT 14, 2 UNION ALL SELECT 14, 3 UNION ALL SELECT 14, 4 UNION ALL SELECT 14, 5 UNION ALL
  SELECT 15, 1 UNION ALL SELECT 15, 2 UNION ALL SELECT 15, 3 UNION ALL SELECT 15, 4 UNION ALL SELECT 15, 5 UNION ALL
  SELECT 16, 1 UNION ALL SELECT 16, 2 UNION ALL SELECT 16, 3 UNION ALL SELECT 16, 4 UNION ALL SELECT 16, 5 UNION ALL
  SELECT 17, 1 UNION ALL SELECT 17, 2 UNION ALL SELECT 17, 3 UNION ALL SELECT 17, 4 UNION ALL SELECT 17, 5 UNION ALL
  SELECT 18, 1 UNION ALL SELECT 18, 2 UNION ALL SELECT 18, 3 UNION ALL SELECT 18, 4 UNION ALL SELECT 18, 5 UNION ALL
  SELECT 19, 1 UNION ALL SELECT 19, 2 UNION ALL SELECT 19, 3 UNION ALL SELECT 19, 4 UNION ALL SELECT 19, 5 UNION ALL
  SELECT 20, 1 UNION ALL SELECT 20, 2 UNION ALL SELECT 20, 3 UNION ALL SELECT 20, 4 UNION ALL SELECT 20, 5
) AS teams;

-- =============================================
-- 2. 长拳集体（20个队伍，100人）
-- =============================================

INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
SELECT 200, 1002, CONCAT('长拳队', num), CONCAT('长拳队', num), CONCAT('队员', member_num),
       IF(member_num % 2 = 0, '男', '女'), 20 + (num % 10), CONCAT('1380000', 2000 + (num-1)*5 + member_num), NOW()
FROM (
  SELECT 1 AS num, 1 AS member_num UNION ALL SELECT 1, 2 UNION ALL SELECT 1, 3 UNION ALL SELECT 1, 4 UNION ALL SELECT 1, 5 UNION ALL
  SELECT 2, 1 UNION ALL SELECT 2, 2 UNION ALL SELECT 2, 3 UNION ALL SELECT 2, 4 UNION ALL SELECT 2, 5 UNION ALL
  SELECT 3, 1 UNION ALL SELECT 3, 2 UNION ALL SELECT 3, 3 UNION ALL SELECT 3, 4 UNION ALL SELECT 3, 5 UNION ALL
  SELECT 4, 1 UNION ALL SELECT 4, 2 UNION ALL SELECT 4, 3 UNION ALL SELECT 4, 4 UNION ALL SELECT 4, 5 UNION ALL
  SELECT 5, 1 UNION ALL SELECT 5, 2 UNION ALL SELECT 5, 3 UNION ALL SELECT 5, 4 UNION ALL SELECT 5, 5 UNION ALL
  SELECT 6, 1 UNION ALL SELECT 6, 2 UNION ALL SELECT 6, 3 UNION ALL SELECT 6, 4 UNION ALL SELECT 6, 5 UNION ALL
  SELECT 7, 1 UNION ALL SELECT 7, 2 UNION ALL SELECT 7, 3 UNION ALL SELECT 7, 4 UNION ALL SELECT 7, 5 UNION ALL
  SELECT 8, 1 UNION ALL SELECT 8, 2 UNION ALL SELECT 8, 3 UNION ALL SELECT 8, 4 UNION ALL SELECT 8, 5 UNION ALL
  SELECT 9, 1 UNION ALL SELECT 9, 2 UNION ALL SELECT 9, 3 UNION ALL SELECT 9, 4 UNION ALL SELECT 9, 5 UNION ALL
  SELECT 10, 1 UNION ALL SELECT 10, 2 UNION ALL SELECT 10, 3 UNION ALL SELECT 10, 4 UNION ALL SELECT 10, 5 UNION ALL
  SELECT 11, 1 UNION ALL SELECT 11, 2 UNION ALL SELECT 11, 3 UNION ALL SELECT 11, 4 UNION ALL SELECT 11, 5 UNION ALL
  SELECT 12, 1 UNION ALL SELECT 12, 2 UNION ALL SELECT 12, 3 UNION ALL SELECT 12, 4 UNION ALL SELECT 12, 5 UNION ALL
  SELECT 13, 1 UNION ALL SELECT 13, 2 UNION ALL SELECT 13, 3 UNION ALL SELECT 13, 4 UNION ALL SELECT 13, 5 UNION ALL
  SELECT 14, 1 UNION ALL SELECT 14, 2 UNION ALL SELECT 14, 3 UNION ALL SELECT 14, 4 UNION ALL SELECT 14, 5 UNION ALL
  SELECT 15, 1 UNION ALL SELECT 15, 2 UNION ALL SELECT 15, 3 UNION ALL SELECT 15, 4 UNION ALL SELECT 15, 5 UNION ALL
  SELECT 16, 1 UNION ALL SELECT 16, 2 UNION ALL SELECT 16, 3 UNION ALL SELECT 16, 4 UNION ALL SELECT 16, 5 UNION ALL
  SELECT 17, 1 UNION ALL SELECT 17, 2 UNION ALL SELECT 17, 3 UNION ALL SELECT 17, 4 UNION ALL SELECT 17, 5 UNION ALL
  SELECT 18, 1 UNION ALL SELECT 18, 2 UNION ALL SELECT 18, 3 UNION ALL SELECT 18, 4 UNION ALL SELECT 18, 5 UNION ALL
  SELECT 19, 1 UNION ALL SELECT 19, 2 UNION ALL SELECT 19, 3 UNION ALL SELECT 19, 4 UNION ALL SELECT 19, 5 UNION ALL
  SELECT 20, 1 UNION ALL SELECT 20, 2 UNION ALL SELECT 20, 3 UNION ALL SELECT 20, 4 UNION ALL SELECT 20, 5
) AS teams;

-- =============================================
-- 3. 剑术集体（20个队伍，100人）
-- =============================================

INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
SELECT 200, 1003, CONCAT('剑术队', num), CONCAT('剑术队', num), CONCAT('队员', member_num),
       IF(member_num % 2 = 0, '男', '女'), 20 + (num % 10), CONCAT('1380000', 3000 + (num-1)*5 + member_num), NOW()
FROM (
  SELECT 1 AS num, 1 AS member_num UNION ALL SELECT 1, 2 UNION ALL SELECT 1, 3 UNION ALL SELECT 1, 4 UNION ALL SELECT 1, 5 UNION ALL
  SELECT 2, 1 UNION ALL SELECT 2, 2 UNION ALL SELECT 2, 3 UNION ALL SELECT 2, 4 UNION ALL SELECT 2, 5 UNION ALL
  SELECT 3, 1 UNION ALL SELECT 3, 2 UNION ALL SELECT 3, 3 UNION ALL SELECT 3, 4 UNION ALL SELECT 3, 5 UNION ALL
  SELECT 4, 1 UNION ALL SELECT 4, 2 UNION ALL SELECT 4, 3 UNION ALL SELECT 4, 4 UNION ALL SELECT 4, 5 UNION ALL
  SELECT 5, 1 UNION ALL SELECT 5, 2 UNION ALL SELECT 5, 3 UNION ALL SELECT 5, 4 UNION ALL SELECT 5, 5 UNION ALL
  SELECT 6, 1 UNION ALL SELECT 6, 2 UNION ALL SELECT 6, 3 UNION ALL SELECT 6, 4 UNION ALL SELECT 6, 5 UNION ALL
  SELECT 7, 1 UNION ALL SELECT 7, 2 UNION ALL SELECT 7, 3 UNION ALL SELECT 7, 4 UNION ALL SELECT 7, 5 UNION ALL
  SELECT 8, 1 UNION ALL SELECT 8, 2 UNION ALL SELECT 8, 3 UNION ALL SELECT 8, 4 UNION ALL SELECT 8, 5 UNION ALL
  SELECT 9, 1 UNION ALL SELECT 9, 2 UNION ALL SELECT 9, 3 UNION ALL SELECT 9, 4 UNION ALL SELECT 9, 5 UNION ALL
  SELECT 10, 1 UNION ALL SELECT 10, 2 UNION ALL SELECT 10, 3 UNION ALL SELECT 10, 4 UNION ALL SELECT 10, 5 UNION ALL
  SELECT 11, 1 UNION ALL SELECT 11, 2 UNION ALL SELECT 11, 3 UNION ALL SELECT 11, 4 UNION ALL SELECT 11, 5 UNION ALL
  SELECT 12, 1 UNION ALL SELECT 12, 2 UNION ALL SELECT 12, 3 UNION ALL SELECT 12, 4 UNION ALL SELECT 12, 5 UNION ALL
  SELECT 13, 1 UNION ALL SELECT 13, 2 UNION ALL SELECT 13, 3 UNION ALL SELECT 13, 4 UNION ALL SELECT 13, 5 UNION ALL
  SELECT 14, 1 UNION ALL SELECT 14, 2 UNION ALL SELECT 14, 3 UNION ALL SELECT 14, 4 UNION ALL SELECT 14, 5 UNION ALL
  SELECT 15, 1 UNION ALL SELECT 15, 2 UNION ALL SELECT 15, 3 UNION ALL SELECT 15, 4 UNION ALL SELECT 15, 5 UNION ALL
  SELECT 16, 1 UNION ALL SELECT 16, 2 UNION ALL SELECT 16, 3 UNION ALL SELECT 16, 4 UNION ALL SELECT 16, 5 UNION ALL
  SELECT 17, 1 UNION ALL SELECT 17, 2 UNION ALL SELECT 17, 3 UNION ALL SELECT 17, 4 UNION ALL SELECT 17, 5 UNION ALL
  SELECT 18, 1 UNION ALL SELECT 18, 2 UNION ALL SELECT 18, 3 UNION ALL SELECT 18, 4 UNION ALL SELECT 18, 5 UNION ALL
  SELECT 19, 1 UNION ALL SELECT 19, 2 UNION ALL SELECT 19, 3 UNION ALL SELECT 19, 4 UNION ALL SELECT 19, 5 UNION ALL
  SELECT 20, 1 UNION ALL SELECT 20, 2 UNION ALL SELECT 20, 3 UNION ALL SELECT 20, 4 UNION ALL SELECT 20, 5
) AS teams;

-- =============================================
-- 4. 刀术集体（20个队伍，100人）
-- =============================================

INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
SELECT 200, 1004, CONCAT('刀术队', num), CONCAT('刀术队', num), CONCAT('队员', member_num),
       IF(member_num % 2 = 0, '男', '女'), 20 + (num % 10), CONCAT('1380000', 4000 + (num-1)*5 + member_num), NOW()
FROM (
  SELECT 1 AS num, 1 AS member_num UNION ALL SELECT 1, 2 UNION ALL SELECT 1, 3 UNION ALL SELECT 1, 4 UNION ALL SELECT 1, 5 UNION ALL
  SELECT 2, 1 UNION ALL SELECT 2, 2 UNION ALL SELECT 2, 3 UNION ALL SELECT 2, 4 UNION ALL SELECT 2, 5 UNION ALL
  SELECT 3, 1 UNION ALL SELECT 3, 2 UNION ALL SELECT 3, 3 UNION ALL SELECT 3, 4 UNION ALL SELECT 3, 5 UNION ALL
  SELECT 4, 1 UNION ALL SELECT 4, 2 UNION ALL SELECT 4, 3 UNION ALL SELECT 4, 4 UNION ALL SELECT 4, 5 UNION ALL
  SELECT 5, 1 UNION ALL SELECT 5, 2 UNION ALL SELECT 5, 3 UNION ALL SELECT 5, 4 UNION ALL SELECT 5, 5 UNION ALL
  SELECT 6, 1 UNION ALL SELECT 6, 2 UNION ALL SELECT 6, 3 UNION ALL SELECT 6, 4 UNION ALL SELECT 6, 5 UNION ALL
  SELECT 7, 1 UNION ALL SELECT 7, 2 UNION ALL SELECT 7, 3 UNION ALL SELECT 7, 4 UNION ALL SELECT 7, 5 UNION ALL
  SELECT 8, 1 UNION ALL SELECT 8, 2 UNION ALL SELECT 8, 3 UNION ALL SELECT 8, 4 UNION ALL SELECT 8, 5 UNION ALL
  SELECT 9, 1 UNION ALL SELECT 9, 2 UNION ALL SELECT 9, 3 UNION ALL SELECT 9, 4 UNION ALL SELECT 9, 5 UNION ALL
  SELECT 10, 1 UNION ALL SELECT 10, 2 UNION ALL SELECT 10, 3 UNION ALL SELECT 10, 4 UNION ALL SELECT 10, 5 UNION ALL
  SELECT 11, 1 UNION ALL SELECT 11, 2 UNION ALL SELECT 11, 3 UNION ALL SELECT 11, 4 UNION ALL SELECT 11, 5 UNION ALL
  SELECT 12, 1 UNION ALL SELECT 12, 2 UNION ALL SELECT 12, 3 UNION ALL SELECT 12, 4 UNION ALL SELECT 12, 5 UNION ALL
  SELECT 13, 1 UNION ALL SELECT 13, 2 UNION ALL SELECT 13, 3 UNION ALL SELECT 13, 4 UNION ALL SELECT 13, 5 UNION ALL
  SELECT 14, 1 UNION ALL SELECT 14, 2 UNION ALL SELECT 14, 3 UNION ALL SELECT 14, 4 UNION ALL SELECT 14, 5 UNION ALL
  SELECT 15, 1 UNION ALL SELECT 15, 2 UNION ALL SELECT 15, 3 UNION ALL SELECT 15, 4 UNION ALL SELECT 15, 5 UNION ALL
  SELECT 16, 1 UNION ALL SELECT 16, 2 UNION ALL SELECT 16, 3 UNION ALL SELECT 16, 4 UNION ALL SELECT 16, 5 UNION ALL
  SELECT 17, 1 UNION ALL SELECT 17, 2 UNION ALL SELECT 17, 3 UNION ALL SELECT 17, 4 UNION ALL SELECT 17, 5 UNION ALL
  SELECT 18, 1 UNION ALL SELECT 18, 2 UNION ALL SELECT 18, 3 UNION ALL SELECT 18, 4 UNION ALL SELECT 18, 5 UNION ALL
  SELECT 19, 1 UNION ALL SELECT 19, 2 UNION ALL SELECT 19, 3 UNION ALL SELECT 19, 4 UNION ALL SELECT 19, 5 UNION ALL
  SELECT 20, 1 UNION ALL SELECT 20, 2 UNION ALL SELECT 20, 3 UNION ALL SELECT 20, 4 UNION ALL SELECT 20, 5
) AS teams;

-- =============================================
-- 5. 棍术集体（20个队伍，100人）
-- =============================================

INSERT INTO martial_athlete (competition_id, project_id, organization, team_name, player_name, gender, age, phone, create_time)
SELECT 200, 1005, CONCAT('棍术队', num), CONCAT('棍术队', num), CONCAT('队员', member_num),
       IF(member_num % 2 = 0, '男', '女'), 15 + (num % 10), CONCAT('1380000', 5000 + (num-1)*5 + member_num), NOW()
FROM (
  SELECT 1 AS num, 1 AS member_num UNION ALL SELECT 1, 2 UNION ALL SELECT 1, 3 UNION ALL SELECT 1, 4 UNION ALL SELECT 1, 5 UNION ALL
  SELECT 2, 1 UNION ALL SELECT 2, 2 UNION ALL SELECT 2, 3 UNION ALL SELECT 2, 4 UNION ALL SELECT 2, 5 UNION ALL
  SELECT 3, 1 UNION ALL SELECT 3, 2 UNION ALL SELECT 3, 3 UNION ALL SELECT 3, 4 UNION ALL SELECT 3, 5 UNION ALL
  SELECT 4, 1 UNION ALL SELECT 4, 2 UNION ALL SELECT 4, 3 UNION ALL SELECT 4, 4 UNION ALL SELECT 4, 5 UNION ALL
  SELECT 5, 1 UNION ALL SELECT 5, 2 UNION ALL SELECT 5, 3 UNION ALL SELECT 5, 4 UNION ALL SELECT 5, 5 UNION ALL
  SELECT 6, 1 UNION ALL SELECT 6, 2 UNION ALL SELECT 6, 3 UNION ALL SELECT 6, 4 UNION ALL SELECT 6, 5 UNION ALL
  SELECT 7, 1 UNION ALL SELECT 7, 2 UNION ALL SELECT 7, 3 UNION ALL SELECT 7, 4 UNION ALL SELECT 7, 5 UNION ALL
  SELECT 8, 1 UNION ALL SELECT 8, 2 UNION ALL SELECT 8, 3 UNION ALL SELECT 8, 4 UNION ALL SELECT 8, 5 UNION ALL
  SELECT 9, 1 UNION ALL SELECT 9, 2 UNION ALL SELECT 9, 3 UNION ALL SELECT 9, 4 UNION ALL SELECT 9, 5 UNION ALL
  SELECT 10, 1 UNION ALL SELECT 10, 2 UNION ALL SELECT 10, 3 UNION ALL SELECT 10, 4 UNION ALL SELECT 10, 5 UNION ALL
  SELECT 11, 1 UNION ALL SELECT 11, 2 UNION ALL SELECT 11, 3 UNION ALL SELECT 11, 4 UNION ALL SELECT 11, 5 UNION ALL
  SELECT 12, 1 UNION ALL SELECT 12, 2 UNION ALL SELECT 12, 3 UNION ALL SELECT 12, 4 UNION ALL SELECT 12, 5 UNION ALL
  SELECT 13, 1 UNION ALL SELECT 13, 2 UNION ALL SELECT 13, 3 UNION ALL SELECT 13, 4 UNION ALL SELECT 13, 5 UNION ALL
  SELECT 14, 1 UNION ALL SELECT 14, 2 UNION ALL SELECT 14, 3 UNION ALL SELECT 14, 4 UNION ALL SELECT 14, 5 UNION ALL
  SELECT 15, 1 UNION ALL SELECT 15, 2 UNION ALL SELECT 15, 3 UNION ALL SELECT 15, 4 UNION ALL SELECT 15, 5 UNION ALL
  SELECT 16, 1 UNION ALL SELECT 16, 2 UNION ALL SELECT 16, 3 UNION ALL SELECT 16, 4 UNION ALL SELECT 16, 5 UNION ALL
  SELECT 17, 1 UNION ALL SELECT 17, 2 UNION ALL SELECT 17, 3 UNION ALL SELECT 17, 4 UNION ALL SELECT 17, 5 UNION ALL
  SELECT 18, 1 UNION ALL SELECT 18, 2 UNION ALL SELECT 18, 3 UNION ALL SELECT 18, 4 UNION ALL SELECT 18, 5 UNION ALL
  SELECT 19, 1 UNION ALL SELECT 19, 2 UNION ALL SELECT 19, 3 UNION ALL SELECT 19, 4 UNION ALL SELECT 19, 5 UNION ALL
  SELECT 20, 1 UNION ALL SELECT 20, 2 UNION ALL SELECT 20, 3 UNION ALL SELECT 20, 4 UNION ALL SELECT 20, 5
) AS teams;

-- =============================================
-- 验证数据
-- =============================================

SELECT
  '集体项目数据统计' AS '说明',
  COUNT(*) AS '总参赛人数',
  COUNT(DISTINCT organization) AS '队伍数',
  COUNT(DISTINCT project_id) AS '项目数'
FROM martial_athlete
WHERE competition_id = 200 AND project_id >= 1001 AND project_id <= 1005;

SELECT
  project_id AS '项目ID',
  (SELECT project_name FROM martial_project WHERE id = mp.project_id) AS '项目名称',
  COUNT(*) AS '参赛人数',
  COUNT(DISTINCT organization) AS '队伍数'
FROM martial_athlete mp
WHERE competition_id = 200 AND project_id >= 1001 AND project_id <= 1005
GROUP BY project_id;

-- =============================================
-- 使用说明
-- =============================================
--
-- 执行方式1：通过MySQL客户端
-- mysql -u root -p martial_competition < test-data/create_100_team_participants.sql
--
-- 执行方式2：在数据库管理工具中直接执行整个SQL文件
--
-- 数据说明：
-- 1. 共100个集体队伍，500人
-- 2. 5个集体项目：太极拳、长拳、剑术、刀术、棍术
-- 3. 每个项目20个队伍，每队5人
-- 4. 配合原有1000个个人项目参赛者，总计1500人
--
-- 测试验证：
-- SELECT COUNT(*) FROM martial_athlete WHERE competition_id = 200;
-- 应该返回 1500
--
-- =============================================
