-- Generated SQL INSERT statements for nodes
-- Generated from nodes.xlsx using countries.xlsx for ISO code mapping

-- Node 1: Xiamen (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             1,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Xiamen (Metropolitan area)',
             '89 Jinshang Rd, Siming District, Xiamen, Fujian, China, 361009',
             'Xiamen',
             false,
             false,
             false,
             true,
             24.489,
             118.1478
         );

-- Node 2: Shanghai (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             2,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Shanghai (Metropolitan area)',
             '6FJP+77M, Ninghai Rd (E), Huangpu, Shanghai, China, 200002',
             'Shanghai',
             false,
             false,
             false,
             true,
             31.2308,
             121.4858
         );

-- Node 3: Hangzhou (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             3,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Hangzhou (Metropolitan area)',
             'Long Hewan Cookshop, 朝晖地区 Xia Cheng Qu, Hang Zhou Shi, Zhe Jiang Sheng, China, 310014',
             'Hangzhou',
             false,
             false,
             false,
             true,
             30.2904,
             120.1701
         );

-- Node 4: Yangzhong (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             4,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Yangzhong (Metropolitan area)',
             'CN 江苏省 镇江市 扬中市 11-107, China, 212299',
             'Yangzhong',
             false,
             false,
             false,
             true,
             32.251,
             119.8078
         );

-- Node 5: Taicang (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             5,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Taicang (Metropolitan area)',
             'H39C+WP4, Xinbei E Rd, Taicang, Suzhou, Jiangsu, China, 215421',
             'Taicang',
             false,
             false,
             false,
             true,
             31.5788,
             121.0729
         );

-- Node 6: Jinjiang (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             6,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Jinjiang (Metropolitan area)',
             '8 Xinzhou Rd, Jingjiang, Taizhou, Jiangsu, China, 214527',
             'Jinjiang',
             false,
             false,
             false,
             true,
             31.9836,
             120.2469
         );

-- Node 7: Qingdao (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             7,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Qingdao (Metropolitan area)',
             'China, 155甲22号CN 山东省 青岛市 李沧区 文昌路 155 邮政编码: 266046',
             'Qingdao',
             false,
             false,
             false,
             true,
             36.1867,
             120.4089
         );

-- Node 8: Fuqing (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             8,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Fuqing (Metropolitan area)',
             'China, Fujian, Fuzhou, Fuqing, 清昌大道105号万达广场2号门4层 邮政编码: 350300',
             'Fuqin',
             false,
             false,
             false,
             true,
             25.7184,
             119.3492
         );

-- Node 9: Linfen (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             9,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Linfen (Metropolitan area)',
             '201 Jiefang Rd, Tianya District, Lin Fen Shi, Hainan, China, 572003',
             'Linfen',
             false,
             false,
             false,
             true,
             36.0838,
             111.5245
         );

-- Node 10: Yantian (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             10,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Yantian (Metropolitan area)',
             'China, CN 广东省 深圳市 盐田区 40 米 邮政编码: 518081',
             'Yantian',
             false,
             false,
             false,
             true,
             22.5782,
             114.2623
         );

-- Node 11: Bangalore (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             11,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Bangalore (Metropolitan area)',
             '197, Bommasandra Indst. Area Hosur Road, Taluk, Anekal, Bengaluru, Karnataka 560099, Indien',
             'Bangalore',
             false,
             false,
             false,
             true,
             12.8205,
             77.6951
         );

-- Node 12: Chennai (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             12,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Chennai (Metropolitan area)',
             'FORT, Tamil Nadu 602106, Indien',
             'Chennai',
             false,
             false,
             false,
             true,
             12.9359,
             79.8972
         );

-- Node 13: Pune (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             13,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Pune (Metropolitan area)',
             'Moie, Pimpri-Chinchwad, Maharashtra 411062, Indien',
             'Pune',
             false,
             false,
             false,
             true,
             18.6984,
             73.8239
         );

-- Node 14: Shenzhen (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             14,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Shenzhen (Metropolitan area)',
             'G3R5+MP9, Fuzhong 3rd Rd, 福田ＣＢＤ Futian District, Shenzhen, Guangdong Province, China, 518000',
             'Shenzhen',
             false,
             false,
             false,
             true,
             22.542,
             114.0593
         );

-- Node 15: Aurangabad (Metropolitan area)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             15,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Aurangabad (Metropolitan area)',
             'Gut no, Teesgaon, 113 B, Ahmednagar - Aurangabad Rd, CIDCO Waluj Mahanagar 2, Waluj, Aurangabad, Dharmapur, Maharashtra 431136, Indien',
             'Aurangabad',
             false,
             false,
             false,
             true,
             19.8475,
             75.2671
         );

-- Node 16: Linde (China) Forklift Truck (Supplier)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             16,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Linde (China) Forklift Truck (Supplier)',
             '89 Jinshang Rd, Siming District, Xiamen, Fujian, China, 361009',
             'LX',
             false,
             false,
             true,
             false,
             24.489,
             118.1478
         );

-- Node 17: KION Baoli (Jiangsu) Forklift Co., Ltd.
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             17,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'KION Baoli (Jiangsu) Forklift Co., Ltd.',
             '8 Xinzhou Rd, Jingjiang, Taizhou, Jiangsu, China, 214527',
             'JJ',
             false,
             false,
             true,
             false,
             31.9836,
             120.2469
         );

-- Node 18: Expeditors Mumbai (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             18,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Expeditors Mumbai (Warehouse)',
             'V2C4+3HC, Khopate, Bandhpada, Maharashtra 410206, Indien',
             'ExM',
             false,
             false,
             true,
             true,
             18.8707,
             73.0077
         );

-- Node 19: Aschaffenburg (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             19,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Aschaffenburg (KION plant)',
             'Großostheimer Str. 198, 63741 Aschaffenburg',
             'AB',
             true,
             true,
             true,
             false,
             49.9506,
             9.1038
         );

-- Node 20: Hamburg (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             20,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Hamburg (KION plant)',
             'Berzeliusstraße 5, 22113 Hamburg',
             'HH',
             true,
             true,
             true,
             false,
             53.537,
             10.0844
         );

-- Node 21: Geisa (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             21,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Geisa (KION plant)',
             'Schleider Str. 13, 36419 Geisa',
             'FGG',
             true,
             true,
             true,
             false,
             50.7077,
             9.9478
         );

-- Node 22: Reutlingen (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             22,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Reutlingen (KION plant)',
             'Ernst-Wagner-Weg 1-5, 72766 Reutlingen',
             'KWS',
             true,
             true,
             true,
             false,
             48.5639,
             9.2456
         );

-- Node 23: Dinklage (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             23,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Dinklage (KION plant)',
             'In d. Bahler Heide 5, 49413 Dinklage',
             'EGD',
             true,
             true,
             true,
             false,
             52.6736,
             8.1319
         );

-- Node 24: Châtellerault (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             24,
             (SELECT id FROM country WHERE iso_code = 'FR'),
             'Châtellerault (KION plant)',
             'Rue de Touraine, 86530 Cenon-sur-Vienne, Frankreich',
             'CTT',
             true,
             true,
             true,
             false,
             46.7762,
             0.5351
         );

-- Node 25: Luzzara
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             25,
             (SELECT id FROM country WHERE iso_code = 'IT'),
             'Luzzara',
             'Via Bosa Est, 25, 42045 Luzzara RE, Italien',
             'LZZ',
             true,
             true,
             true,
             false,
             44.9421,
             10.7078
         );

-- Node 26: Stříbro (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             26,
             (SELECT id FROM country WHERE iso_code = 'CZ'),
             'Stříbro (KION plant)',
             'Ostrov u Stříbra 19, 349 01 Stříbro, Tschechien',
             'STR',
             true,
             true,
             true,
             false,
             49.7002,
             13.035
         );

-- Node 27: Nový Jičín (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             27,
             (SELECT id FROM country WHERE iso_code = 'CZ'),
             'Nový Jičín (KION plant)',
             'Dukelská 102, 742 42 Šenov u Nového Jičína, Tschechien',
             'VOP',
             true,
             true,
             true,
             false,
             49.6153,
             17.9932
         );

-- Node 28: Kołbaskowo (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             28,
             (SELECT id FROM country WHERE iso_code = 'PL'),
             'Kołbaskowo (KION plant)',
             'Kołbaskowo 70, 72-001, Polen',
             'KOL',
             true,
             true,
             true,
             false,
             53.3271,
             14.4288
         );

-- Node 29: Český Krumlov (KION plant)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             29,
             (SELECT id FROM country WHERE iso_code = 'CZ'),
             'Český Krumlov (KION plant)',
             'Tovární 118, 381 01 Český Krumlov 1, Tschechien',
             'LiPo',
             true,
             true,
             true,
             false,
             48.8316,
             14.334
         );

-- Node 30: Urban Zbůch (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             30,
             (SELECT id FROM country WHERE iso_code = 'CZ'),
             'Urban Zbůch (Warehouse)',
             'Sokolská 35, 330 22 Zbůch, Tschechien',
             'Zbůch',
             false,
             false,
             false,
             true,
             49.684,
             13.2244
         );

-- Node 31: Urban Wörth am Main (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             31,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Urban Wörth am Main (Warehouse)',
             'Landstraße 23A, 63939 Wörth am Main',
             'Urban Wörth',
             false,
             false,
             false,
             true,
             49.7964,
             9.1612
         );

-- Node 32: Urban Aschaffenburg (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             32,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Urban Aschaffenburg (Warehouse)',
             'Germanenstraße 28, 63741 Aschaffenburg',
             'Urban AB',
             false,
             false,
             false,
             true,
             49.9678,
             9.0947
         );

-- Node 33: Pfaff Rade (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             33,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Pfaff Rade (Warehouse)',
             'Am Holz 3, 21629 Neu Wulmstorf',
             'Pfaff Rade',
             false,
             false,
             false,
             true,
             53.374,
             9.7878
         );

-- Node 34: Geodis bâtiment 3 (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             34,
             (SELECT id FROM country WHERE iso_code = 'FR'),
             'Geodis bâtiment 3 (Warehouse)',
             '115 Allée des érables, 86130 Dissay, France',
             'Bat3',
             false,
             false,
             false,
             true,
             46.7027,
             0.4035
         );

-- Node 35: Jeantet Ouest (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             35,
             (SELECT id FROM country WHERE iso_code = 'FR'),
             'Jeantet Ouest (Warehouse)',
             '12 Rue Dieudonné Costes et Mauric, 86100 Châtellerault, France',
             'Jeantet',
             false,
             false,
             false,
             true,
             46.8403,
             0.5424
         );

-- Node 36: Urban Rolo I (Warehouse)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             36,
             (SELECT id FROM country WHERE iso_code = 'IT'),
             'Urban Rolo I (Warehouse)',
             'Via Vincenzo Mari 3, 42047 Rolo RE, Italien',
             'Urban Rolo',
             false,
             false,
             false,
             true,
             44.8712,
             10.8493
         );

-- Node 37: Shanghai (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             37,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Shanghai (Port)',
             '9H6X+P28, Gangdian Rd, Pudong, Shanghai, China, 200131',
             'CNSHA',
             false,
             false,
             false,
             true,
             31.364,
             121.5979
         );

-- Node 38: Qingdao (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             38,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Qingdao (Port)',
             '2694+283, Weisi Rd, Huangdao, Qingdao, Shandong, China, 266500',
             'CNTAO',
             false,
             false,
             false,
             true,
             36.0215,
             120.2149
         );

-- Node 39: Tangshan (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             39,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Tangshan (Port)',
             'China, Hebei, Tangshan, Laoting County, 海滨路 邮政编码: 063611',
             'CNTGS',
             false,
             false,
             false,
             true,
             39.2166,
             118.9813
         );

-- Node 40: Xiamen (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             40,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Xiamen (Port)',
             'C2WJ+WVC, Haicang District, Xiamen, Fujian, China, 361026',
             'CNXMN',
             false,
             false,
             false,
             true,
             24.4486,
             118.0363
         );

-- Node 41: Yantian (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             41,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Yantian (Port)',
             'H7G8+G6G, Yantian District, Shenzhen, Guangdong Province, China',
             'CNYTN',
             false,
             false,
             false,
             true,
             22.5765,
             114.2656
         );

-- Node 42: Jawaharlal Nehru Port Trust (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             42,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Jawaharlal Nehru Port Trust (Port)',
             'Sheva, Navi Mumbai, Juna Sheva, Maharashtra 400702, Indien',
             'INJNPT',
             false,
             false,
             false,
             true,
             18.9337,
             72.9515
         );

-- Node 43: Hamburg (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             43,
             (SELECT id FROM country WHERE iso_code = 'DE'),
             'Hamburg (Port)',
             'Waltershofer Damm, 21129 Hamburg',
             'DEHAM',
             false,
             false,
             false,
             true,
             53.5271,
             9.9297
         );

-- Node 44: Le Havre (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             44,
             (SELECT id FROM country WHERE iso_code = 'FR'),
             'Le Havre (Port)',
             'Zone Port 2000, Route de l’Estuaire Port Sud, 76600 Le Havre, Frankreich',
             'FRLEH',
             false,
             false,
             false,
             true,
             49.4632,
             0.1485
         );

-- Node 45: Zeebrugge (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             45,
             (SELECT id FROM country WHERE iso_code = 'BE'),
             'Zeebrugge (Port)',
             'Leopold II Laan, kaai 120, 8380 Brugge, Belgien',
             'BEZEE',
             false,
             false,
             false,
             true,
             51.3457,
             3.1946
         );

-- Node 46: Chennai (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             46,
             (SELECT id FROM country WHERE iso_code = 'IN'),
             'Chennai (Port)',
             'Ground Chennai Port Trust Administrative Building, 1, Rajaji Salai, Chennai, Tamil Nadu 600001, Indien',
             'INMAA',
             false,
             false,
             false,
             true,
             13.1104,
             80.2973
         );

-- Node 47: Hong Kong (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             47,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Hong Kong (Port)',
             'Tsing Yi, Hongkong',
             'HKMBP',
             false,
             false,
             false,
             true,
             22.3407,
             114.1113
         );

-- Node 48: Genoa (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             48,
             (SELECT id FROM country WHERE iso_code = 'IT'),
             'Genoa (Port)',
             'Viale Africa, 16149 Genova GE, Italien',
             'ITGOA',
             false,
             false,
             false,
             true,
             44.4106,
             8.8823
         );

-- Node 49: Shenzhen (Port)
INSERT INTO node (
    id,
    country_id,
    name,
    address,
    external_mapping_id,
    predecessor_required,
    is_destination,
    is_source,
    is_intermediate,
    geo_lat,
    geo_lng
) VALUES (
             49,
             (SELECT id FROM country WHERE iso_code = 'CN'),
             'Shenzhen (Port)',
             'H64R+VQ6, Yantian District, Shenzhen, Guangdong Province, China',
             'CNSZX',
             false,
             false,
             false,
             true,
             22.558,
             114.2416
         );


-- SQL INSERT-Statements für node_predecessor_chain und node_predecessor_entry
-- Generiert aus Lastenheft_Requirements Appendix C_Vorknoten.csv
-- 51 Predecessor-Ketten

-- Predecessor Chain 1: CTT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CTT')
         );

SET @chain_id_1 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Bat3'),
             @chain_id_1,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'FRLEH'),
             @chain_id_1,
             2
         );

-- Predecessor Chain 2: CTT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CTT')
         );

SET @chain_id_2 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Jeantet'),
             @chain_id_2,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'FRLEH'),
             @chain_id_2,
             2
         );

-- Predecessor Chain 3: CTT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CTT')
         );

SET @chain_id_3 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'FRLEH'),
             @chain_id_3,
             1
         );

-- Predecessor Chain 4: CTT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CTT')
         );

SET @chain_id_4 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_4,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_4,
             2
         );

-- Predecessor Chain 5: AB
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'AB')
         );

SET @chain_id_5 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_5,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_5,
             2
         );

-- Predecessor Chain 6: AB
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'AB')
         );

SET @chain_id_6 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban Wörth'),
             @chain_id_6,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_6,
             2
         );

-- Predecessor Chain 7: AB
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'AB')
         );

SET @chain_id_7 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_7,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_7,
             2
         );

-- Predecessor Chain 8: AB
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'AB')
         );

SET @chain_id_8 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_8,
             1
         );

-- Predecessor Chain 9: FGG
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'FGG')
         );

SET @chain_id_9 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_9,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_9,
             2
         );

-- Predecessor Chain 10: FGG
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'FGG')
         );

SET @chain_id_10 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_10,
             1
         );

-- Predecessor Chain 11: KWS
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'KWS')
         );

SET @chain_id_11 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_11,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_11,
             2
         );

-- Predecessor Chain 12: KWS
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'KWS')
         );

SET @chain_id_12 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_12,
             1
         );

-- Predecessor Chain 13: EGD
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'EGD')
         );

SET @chain_id_13 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Pfaff Rade'),
             @chain_id_13,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_13,
             2
         );

-- Predecessor Chain 14: EGD
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'EGD')
         );

SET @chain_id_14 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_14,
             1
         );

-- Predecessor Chain 15: LZZ
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LZZ')
         );

SET @chain_id_15 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_15,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_15,
             2
         );

-- Predecessor Chain 16: LZZ
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LZZ')
         );

SET @chain_id_16 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban Rolo'),
             @chain_id_16,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban AB'),
             @chain_id_16,
             2
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'BEZEE'),
             @chain_id_16,
             3
         );

-- Predecessor Chain 17: LZZ
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LZZ')
         );

SET @chain_id_17 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Urban Rolo'),
             @chain_id_17,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ITGOA'),
             @chain_id_17,
             2
         );

-- Predecessor Chain 18: LZZ
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LZZ')
         );

SET @chain_id_18 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ITGOA'),
             @chain_id_18,
             1
         );

-- Predecessor Chain 19: STR
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'STR')
         );

SET @chain_id_19 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Zbůch'),
             @chain_id_19,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_19,
             2
         );

-- Predecessor Chain 20: STR
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'STR')
         );

SET @chain_id_20 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_20,
             1
         );

-- Predecessor Chain 21: VOP
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'VOP')
         );

SET @chain_id_21 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Zbůch'),
             @chain_id_21,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_21,
             2
         );

-- Predecessor Chain 22: VOP
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'VOP')
         );

SET @chain_id_22 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_22,
             1
         );

-- Predecessor Chain 23: KOL
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'KOL')
         );

SET @chain_id_23 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_23,
             1
         );

-- Predecessor Chain 24: LiPo
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LiPo')
         );

SET @chain_id_24 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Zbůch'),
             @chain_id_24,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_24,
             2
         );

-- Predecessor Chain 25: LiPo
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LiPo')
         );

SET @chain_id_25 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_25,
             1
         );

-- Predecessor Chain 26: HH
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'HH')
         );

SET @chain_id_26 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_26,
             1
         );

-- Predecessor Chain 27: HH
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'HH')
         );

SET @chain_id_27 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Pfaff Rade'),
             @chain_id_27,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'DEHAM'),
             @chain_id_27,
             2
         );

-- Predecessor Chain 28: CNXMN
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNXMN')
         );

SET @chain_id_28 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Xiamen'),
             @chain_id_28,
             1
         );

-- Predecessor Chain 29: CNSHA
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNSHA')
         );

SET @chain_id_29 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Shanghai'),
             @chain_id_29,
             1
         );

-- Predecessor Chain 30: CNSHA
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNSHA')
         );

SET @chain_id_30 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Hangzhou'),
             @chain_id_30,
             1
         );

-- Predecessor Chain 31: CNSHA
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNSHA')
         );

SET @chain_id_31 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Yangzhong'),
             @chain_id_31,
             1
         );

-- Predecessor Chain 32: CNSHA
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNSHA')
         );

SET @chain_id_32 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Taicang'),
             @chain_id_32,
             1
         );

-- Predecessor Chain 33: CNXMN
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNXMN')
         );

SET @chain_id_33 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Jinjiang'),
             @chain_id_33,
             1
         );

-- Predecessor Chain 34: CNTAO
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNTAO')
         );

SET @chain_id_34 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Qingdao'),
             @chain_id_34,
             1
         );

-- Predecessor Chain 35: CNXMN
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNXMN')
         );

SET @chain_id_35 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Fuqin'),
             @chain_id_35,
             1
         );

-- Predecessor Chain 36: CNTAO
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNTAO')
         );

SET @chain_id_36 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Linfen'),
             @chain_id_36,
             1
         );

-- Predecessor Chain 37: CNTGS
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNTGS')
         );

SET @chain_id_37 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Linfen'),
             @chain_id_37,
             1
         );

-- Predecessor Chain 38: CNYTN
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNYTN')
         );

SET @chain_id_38 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Yantian'),
             @chain_id_38,
             1
         );

-- Predecessor Chain 39: INMAA
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INMAA')
         );

SET @chain_id_39 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Bangalore'),
             @chain_id_39,
             1
         );

-- Predecessor Chain 40: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_40 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ExM'),
             @chain_id_40,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Bangalore'),
             @chain_id_40,
             2
         );

-- Predecessor Chain 41: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_41 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ExM'),
             @chain_id_41,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Pune'),
             @chain_id_41,
             2
         );

-- Predecessor Chain 42: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_42 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Pune'),
             @chain_id_42,
             1
         );

-- Predecessor Chain 43: INMAA
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INMAA')
         );

SET @chain_id_43 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Chennai'),
             @chain_id_43,
             1
         );

-- Predecessor Chain 44: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_44 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ExM'),
             @chain_id_44,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Chennai'),
             @chain_id_44,
             2
         );

-- Predecessor Chain 45: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_45 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ExM'),
             @chain_id_45,
             1
         );

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Aurangabad'),
             @chain_id_45,
             2
         );

-- Predecessor Chain 46: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_46 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Aurangabad'),
             @chain_id_46,
             1
         );

-- Predecessor Chain 47: CNXMN
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNXMN')
         );

SET @chain_id_47 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'LX'),
             @chain_id_47,
             1
         );

-- Predecessor Chain 48: INJNPT
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'INJNPT')
         );

SET @chain_id_48 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'ExM'),
             @chain_id_48,
             1
         );

-- Predecessor Chain 49: CNXMN
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNXMN')
         );

SET @chain_id_49 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'JJ'),
             @chain_id_49,
             1
         );

-- Predecessor Chain 50: HKMBP
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'HKMBP')
         );

SET @chain_id_50 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Shenzhen'),
             @chain_id_50,
             1
         );

-- Predecessor Chain 51: CNSZX
INSERT INTO node_predecessor_chain (
    node_id
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'CNSZX')
         );

SET @chain_id_51 = LAST_INSERT_ID();

INSERT INTO node_predecessor_entry (
    node_id,
    node_predecessor_chain_id,
    sequence_number
) VALUES (
             (SELECT id FROM node WHERE external_mapping_id = 'Shenzhen'),
             @chain_id_51,
             1
         );
