INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW044', 1, 697, 'Purrloin: Sweet or Sneaky?', '2011-12-03') ON DUPLICATE KEY UPDATE season = 1, number = 697, title = 'Purrloin: Sweet or Sneaky?', airdate = LEAST(airdate, '2011-12-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW045', 4, 45, 'Ohbem and Doublan and the Dream Thief!', '2011-09-01') ON DUPLICATE KEY UPDATE series = 4, number = 45, title = 'Ohbem and Doublan and the Dream Thief!', airdate = LEAST(airdate, '2011-09-01');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW045', 1, 698, 'Beheeyem, Duosion, and the Dream Thief!', '2011-12-10') ON DUPLICATE KEY UPDATE season = 1, number = 698, title = 'Beheeyem, Duosion, and the Dream Thief!', airdate = LEAST(airdate, '2011-12-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW046', 4, 46, 'Nyagotiator Nyarth! Break Through Tunbear Forest!!', '2011-09-08') ON DUPLICATE KEY UPDATE series = 4, number = 46, title = 'Nyagotiator Nyarth! Break Through Tunbear Forest!!', airdate = LEAST(airdate, '2011-09-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW046', 1, 699, 'The Beartic Mountain Feud!', '2011-12-17') ON DUPLICATE KEY UPDATE season = 1, number = 699, title = 'The Beartic Mountain Feud!', airdate = LEAST(airdate, '2011-12-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW047', 4, 47, 'Flat-out Run!! Battle Subway!! (Part 1)', '2011-09-15') ON DUPLICATE KEY UPDATE series = 4, number = 47, title = 'Flat-out Run!! Battle Subway!! (Part 1)', airdate = LEAST(airdate, '2011-09-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW047', 1, 700, 'Crisis from the Underground Up!', '2011-12-31') ON DUPLICATE KEY UPDATE season = 1, number = 700, title = 'Crisis from the Underground Up!', airdate = LEAST(airdate, '2011-12-31');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW048', 4, 48, 'Flat-out Run!! Battle Subway!! (Part 2)', '2011-09-15') ON DUPLICATE KEY UPDATE series = 4, number = 48, title = 'Flat-out Run!! Battle Subway!! (Part 2)', airdate = LEAST(airdate, '2011-09-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW048', 1, 701, 'Battle For The Underground!', '2012-01-07') ON DUPLICATE KEY UPDATE season = 1, number = 701, title = 'Battle For The Underground!', airdate = LEAST(airdate, '2012-01-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW049', 4, 49, 'The Gym Leader is a Charisma Model! Kamitsure Appears!!', '2011-09-22') ON DUPLICATE KEY UPDATE series = 4, number = 49, title = 'The Gym Leader is a Charisma Model! Kamitsure Appears!!', airdate = LEAST(airdate, '2011-09-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW049', 1, 702, 'Enter Elesa, Electrifying Gym Leader!', '2012-02-18') ON DUPLICATE KEY UPDATE season = 1, number = 702, title = 'Enter Elesa, Electrifying Gym Leader!', airdate = LEAST(airdate, '2012-02-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW050', 4, 50, 'Raimon Gym! Magnificent Electric Shock Battle!!', '2011-09-29') ON DUPLICATE KEY UPDATE series = 4, number = 50, title = 'Raimon Gym! Magnificent Electric Shock Battle!!', airdate = LEAST(airdate, '2011-09-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW050', 1, 703, 'Dazzling the Nimbasa Gym!', '2012-02-25') ON DUPLICATE KEY UPDATE season = 1, number = 703, title = 'Dazzling the Nimbasa Gym!', airdate = LEAST(airdate, '2012-02-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW051', 4, 51, 'Satoshi, Dent VS Subway Masters!', '2011-10-06') ON DUPLICATE KEY UPDATE series = 4, number = 51, title = 'Satoshi, Dent VS Subway Masters!', airdate = LEAST(airdate, '2011-10-06');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW051', 1, 704, 'Lost at the Stamp Rally!', '2012-03-03') ON DUPLICATE KEY UPDATE season = 1, number = 704, title = 'Lost at the Stamp Rally!', airdate = LEAST(airdate, '2012-03-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW052', 4, 52, 'Satoshi VS Champion Adeku!', '2011-10-13') ON DUPLICATE KEY UPDATE series = 4, number = 52, title = 'Satoshi VS Champion Adeku!', airdate = LEAST(airdate, '2011-10-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW052', 1, 705, 'Ash Versus the Champion!', '2012-03-10') ON DUPLICATE KEY UPDATE season = 1, number = 705, title = 'Ash Versus the Champion!', airdate = LEAST(airdate, '2012-03-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW053', 4, 53, 'Over the Rainbow! Maracacchi Musical!!', '2011-10-27') ON DUPLICATE KEY UPDATE series = 4, number = 53, title = 'Over the Rainbow! Maracacchi Musical!!', airdate = LEAST(airdate, '2011-10-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW053', 1, 706, 'A Maractus Musical!', '2012-03-17') ON DUPLICATE KEY UPDATE season = 1, number = 706, title = 'A Maractus Musical!', airdate = LEAST(airdate, '2012-03-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW054', 4, 54, 'Mebukijika! The Four Seasons Lineup!!', '2011-11-03') ON DUPLICATE KEY UPDATE series = 4, number = 54, title = 'Mebukijika! The Four Seasons Lineup!!', airdate = LEAST(airdate, '2011-11-03');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW054', 1, 707, 'The Four Seasons of Sawsbuck!', '2012-03-24') ON DUPLICATE KEY UPDATE season = 1, number = 707, title = 'The Four Seasons of Sawsbuck!', airdate = LEAST(airdate, '2012-03-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW055', 4, 55, 'Zuruggu and the Selfish Gothimu!', '2011-11-10') ON DUPLICATE KEY UPDATE series = 4, number = 55, title = 'Zuruggu and the Selfish Gothimu!', airdate = LEAST(airdate, '2011-11-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW055', 1, 708, 'Scraggy and the Demanding Gothita!', '2012-03-31') ON DUPLICATE KEY UPDATE season = 1, number = 708, title = 'Scraggy and the Demanding Gothita!', airdate = LEAST(airdate, '2012-03-31');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW056', 4, 56, 'Iris and Monozu! Day Care Training!!', '2011-11-24') ON DUPLICATE KEY UPDATE series = 4, number = 56, title = 'Iris and Monozu! Day Care Training!!', airdate = LEAST(airdate, '2011-11-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW056', 1, 709, 'The Lonely Deino!', '2012-04-07') ON DUPLICATE KEY UPDATE season = 1, number = 709, title = 'The Lonely Deino!', airdate = LEAST(airdate, '2012-04-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW057', 4, 57, 'Kaiketsu A☆Gilder VS Freege Man!', '2011-12-01') ON DUPLICATE KEY UPDATE series = 4, number = 57, title = 'Kaiketsu A☆Gilder VS Freege Man!', airdate = LEAST(airdate, '2011-12-01');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW057', 1, 710, 'The Mighty Accelguard to the Rescue!', '2012-04-14') ON DUPLICATE KEY UPDATE season = 1, number = 710, title = 'The Mighty Accelguard to the Rescue!', airdate = LEAST(airdate, '2012-04-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW058', 4, 58, 'A Brotherly Battle between Dent and Pod! Baoppu VS Yanappu', '2011-12-08') ON DUPLICATE KEY UPDATE series = 4, number = 58, title = 'A Brotherly Battle between Dent and Pod! Baoppu VS Yanappu', airdate = LEAST(airdate, '2011-12-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW058', 1, 711, 'A Call for Brotherly Love!', '2012-04-21') ON DUPLICATE KEY UPDATE season = 1, number = 711, title = 'A Call for Brotherly Love!', airdate = LEAST(airdate, '2012-04-21');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW059', 4, 59, 'Tornelos VS Voltolos VS Landlos! (Part 1)', '2011-12-15') ON DUPLICATE KEY UPDATE series = 4, number = 59, title = 'Tornelos VS Voltolos VS Landlos! (Part 1)', airdate = LEAST(airdate, '2011-12-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW059', 1, 712, 'Stopping the Rage of Legends! Part 1', '2012-04-28') ON DUPLICATE KEY UPDATE season = 1, number = 712, title = 'Stopping the Rage of Legends! Part 1', airdate = LEAST(airdate, '2012-04-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW060', 4, 60, 'Tornelos VS Voltolos VS Landlos! (Part 2)', '2011-12-22') ON DUPLICATE KEY UPDATE series = 4, number = 60, title = 'Tornelos VS Voltolos VS Landlos! (Part 2)', airdate = LEAST(airdate, '2011-12-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW060', 1, 713, 'Stopping the Rage of Legends! Part 2', '2012-05-05') ON DUPLICATE KEY UPDATE season = 1, number = 713, title = 'Stopping the Rage of Legends! Part 2', airdate = LEAST(airdate, '2012-05-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW061', 4, 61, 'Underground Gym Battle! VS Yakon!!', '2012-01-05') ON DUPLICATE KEY UPDATE series = 4, number = 61, title = 'Underground Gym Battle! VS Yakon!!', airdate = LEAST(airdate, '2012-01-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW061', 1, 714, 'Battling the King of the Mines!', '2012-05-12') ON DUPLICATE KEY UPDATE season = 1, number = 714, title = 'Battling the King of the Mines!', airdate = LEAST(airdate, '2012-05-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW062', 4, 62, 'Bachuru, Dentula! The Electric Stone Cave!!', '2012-01-12') ON DUPLICATE KEY UPDATE series = 4, number = 62, title = 'Bachuru, Dentula! The Electric Stone Cave!!', airdate = LEAST(airdate, '2012-01-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW062', 1, 715, 'Crisis at Chargestone Cave!', '2012-05-19') ON DUPLICATE KEY UPDATE season = 1, number = 715, title = 'Crisis at Chargestone Cave!', airdate = LEAST(airdate, '2012-05-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW063', 4, 63, 'Trade Evolution! Chevargo and Agilder!!', '2012-01-19') ON DUPLICATE KEY UPDATE series = 4, number = 63, title = 'Trade Evolution! Chevargo and Agilder!!', airdate = LEAST(airdate, '2012-01-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW063', 1, 716, 'Evolution Exchange Excitement!', '2012-05-26') ON DUPLICATE KEY UPDATE season = 1, number = 716, title = 'Evolution Exchange Excitement!', airdate = LEAST(airdate, '2012-05-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW064', 4, 64, 'The Black Hero\'s Ruins! Symboler and Desukarn!!', '2012-01-26') ON DUPLICATE KEY UPDATE series = 4, number = 64, title = 'The Black Hero\'s Ruins! Symboler and Desukarn!!', airdate = LEAST(airdate, '2012-01-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW064', 1, 717, 'Explorers of the Hero\'s Ruin!', '2012-06-02') ON DUPLICATE KEY UPDATE season = 1, number = 717, title = 'Explorers of the Hero\'s Ruin!', airdate = LEAST(airdate, '2012-06-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW065', 4, 65, 'Double Battle! Pikachu & Waruvile VS Pendror & Gamageroge!!', '2012-02-02') ON DUPLICATE KEY UPDATE series = 4, number = 65, title = 'Double Battle! Pikachu & Waruvile VS Pendror & Gamageroge!!', airdate = LEAST(airdate, '2012-02-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW065', 1, 718, 'Battling the Bully!', '2012-06-09') ON DUPLICATE KEY UPDATE season = 1, number = 718, title = 'Battling the Bully!', airdate = LEAST(airdate, '2012-06-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW066', 4, 66, 'Afro GO! Buffron NO!!', '2012-02-16') ON DUPLICATE KEY UPDATE series = 4, number = 66, title = 'Afro GO! Buffron NO!!', airdate = LEAST(airdate, '2012-02-16');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW066', 1, 719, 'Baffling the Bouffalant!', '2012-06-16') ON DUPLICATE KEY UPDATE season = 1, number = 719, title = 'Baffling the Bouffalant!', airdate = LEAST(airdate, '2012-06-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW067', 4, 67, 'Fukiyose Gym Air Battle! Challenger Dent!?', '2012-02-23') ON DUPLICATE KEY UPDATE series = 4, number = 67, title = 'Fukiyose Gym Air Battle! Challenger Dent!?', airdate = LEAST(airdate, '2012-02-23');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW067', 1, 720, 'Cilan Takes Flight!', '2012-06-23') ON DUPLICATE KEY UPDATE season = 1, number = 720, title = 'Cilan Takes Flight!', airdate = LEAST(airdate, '2012-06-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW068', 4, 68, 'Fukiyose Gym! VS Huuro, A Decisive Air Battle!!', '2012-03-01') ON DUPLICATE KEY UPDATE series = 4, number = 68, title = 'Fukiyose Gym! VS Huuro, A Decisive Air Battle!!', airdate = LEAST(airdate, '2012-03-01');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW068', 1, 721, 'An Amazing Aerial Battle!', '2012-06-30') ON DUPLICATE KEY UPDATE season = 1, number = 721, title = 'An Amazing Aerial Battle!', airdate = LEAST(airdate, '2012-06-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW069', 4, 69, 'Barrier Breakthrough! Climb the Tower of the Sky!!', '2012-03-08') ON DUPLICATE KEY UPDATE series = 4, number = 69, title = 'Barrier Breakthrough! Climb the Tower of the Sky!!', airdate = LEAST(airdate, '2012-03-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW069', 1, 722, 'Climbing the Tower of Success!', '2012-07-07') ON DUPLICATE KEY UPDATE season = 1, number = 722, title = 'Climbing the Tower of Success!', airdate = LEAST(airdate, '2012-07-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW070', 4, 70, 'The Donamite Gets Underway! Zuruggu VS Yanakkie!!', '2012-03-15') ON DUPLICATE KEY UPDATE series = 4, number = 70, title = 'The Donamite Gets Underway! Zuruggu VS Yanakkie!!', airdate = LEAST(airdate, '2012-03-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW070', 1, 723, 'The Clubsplosion Begins!', '2012-07-14') ON DUPLICATE KEY UPDATE season = 1, number = 723, title = 'The Clubsplosion Begins!', airdate = LEAST(airdate, '2012-07-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW071', 4, 71, 'Steadily Progressing Donamite! Crimgan VS Kirikizan!!', '2012-03-22') ON DUPLICATE KEY UPDATE series = 4, number = 71, title = 'Steadily Progressing Donamite! Crimgan VS Kirikizan!!', airdate = LEAST(airdate, '2012-03-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW071', 1, 724, 'Search for the Clubultimate!', '2012-07-21') ON DUPLICATE KEY UPDATE season = 1, number = 724, title = 'Search for the Clubultimate!', airdate = LEAST(airdate, '2012-07-21');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW072', 4, 72, 'The Fiercely Fought Donamite! Kirikizan VS Enbuoh!!', '2012-03-29') ON DUPLICATE KEY UPDATE series = 4, number = 72, title = 'The Fiercely Fought Donamite! Kirikizan VS Enbuoh!!', airdate = LEAST(airdate, '2012-03-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW072', 1, 725, 'A Clubsplosion of Excitement!', '2012-07-28') ON DUPLICATE KEY UPDATE season = 1, number = 725, title = 'A Clubsplosion of Excitement!', airdate = LEAST(airdate, '2012-07-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW073', 4, 73, 'The Decisive Donamite Battle! Nageki VS Dageki!!', '2012-04-05') ON DUPLICATE KEY UPDATE series = 4, number = 73, title = 'The Decisive Donamite Battle! Nageki VS Dageki!!', airdate = LEAST(airdate, '2012-04-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW073', 1, 726, 'Commanding the Clubsplosion Crown!', '2012-08-04') ON DUPLICATE KEY UPDATE season = 1, number = 726, title = 'Commanding the Clubsplosion Crown!', airdate = LEAST(airdate, '2012-08-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW074', 4, 74, 'Rescue Kibago! Aiant\'s Nest!!', '2012-04-12') ON DUPLICATE KEY UPDATE series = 4, number = 74, title = 'Rescue Kibago! Aiant\'s Nest!!', airdate = LEAST(airdate, '2012-04-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW074', 1, 727, 'Battling the Leaf Thieves!', '2012-08-11') ON DUPLICATE KEY UPDATE season = 1, number = 727, title = 'Battling the Leaf Thieves!', airdate = LEAST(airdate, '2012-08-11');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW075', 4, 75, 'The Fierce Fighting at Spiral Mountain! Abagoura\'s Miracle!! (Part 1)', '2012-04-19') ON DUPLICATE KEY UPDATE series = 4, number = 75, title = 'The Fierce Fighting at Spiral Mountain! Abagoura\'s Miracle!! (Part 1)', airdate = LEAST(airdate, '2012-04-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW075', 1, 728, 'A Restoration Confrontation! Part 1', '2012-08-18') ON DUPLICATE KEY UPDATE season = 1, number = 728, title = 'A Restoration Confrontation! Part 1', airdate = LEAST(airdate, '2012-08-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW076', 4, 76, 'The Fierce Fighting at Spiral Mountain! Abagoura\'s Miracle!! (Part 2)', '2012-04-26') ON DUPLICATE KEY UPDATE series = 4, number = 76, title = 'The Fierce Fighting at Spiral Mountain! Abagoura\'s Miracle!! (Part 2)', airdate = LEAST(airdate, '2012-04-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW076', 1, 729, 'A Restoration Confrontation! Part 2', '2012-08-25') ON DUPLICATE KEY UPDATE season = 1, number = 729, title = 'A Restoration Confrontation! Part 2', airdate = LEAST(airdate, '2012-08-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW077', 4, 77, 'Flaming Memories! Pokabu VS Enbuoh!!', '2012-05-03') ON DUPLICATE KEY UPDATE series = 4, number = 77, title = 'Flaming Memories! Pokabu VS Enbuoh!!', airdate = LEAST(airdate, '2012-05-03');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW077', 1, 730, 'Evolution by Fire!', '2012-09-01') ON DUPLICATE KEY UPDATE season = 1, number = 730, title = 'Evolution by Fire!', airdate = LEAST(airdate, '2012-09-01');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW078', 4, 78, 'Hachiku Appears! The Holy Mountain of Ulgamoth!!', '2012-05-10') ON DUPLICATE KEY UPDATE series = 4, number = 78, title = 'Hachiku Appears! The Holy Mountain of Ulgamoth!!', airdate = LEAST(airdate, '2012-05-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW078', 1, 731, 'Guarding the Guardian of the Mountain!', '2012-09-08') ON DUPLICATE KEY UPDATE season = 1, number = 731, title = 'Guarding the Guardian of the Mountain!', airdate = LEAST(airdate, '2012-09-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW079', 4, 79, 'Sekka Gym Battle! Ice Battlefield!!', '2012-05-17') ON DUPLICATE KEY UPDATE series = 4, number = 79, title = 'Sekka Gym Battle! Ice Battlefield!!', airdate = LEAST(airdate, '2012-05-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW079', 1, 732, 'Caution: Icy Battle Conditions!', '2012-09-15') ON DUPLICATE KEY UPDATE season = 1, number = 732, title = 'Caution: Icy Battle Conditions!', airdate = LEAST(airdate, '2012-09-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW080', 4, 80, 'Pokémon Sommelier Showdown! Tasting Battle!!', '2012-05-24') ON DUPLICATE KEY UPDATE series = 4, number = 80, title = 'Pokémon Sommelier Showdown! Tasting Battle!!', airdate = LEAST(airdate, '2012-05-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW080', 1, 733, 'Clash of the Connoisseurs!', '2012-09-22') ON DUPLICATE KEY UPDATE season = 1, number = 733, title = 'Clash of the Connoisseurs!', airdate = LEAST(airdate, '2012-09-22');
INSERT INTO episodes (code, title, airdate) VALUES ('M15', 'Kyurem VS the Sacred Swordsman: Keldeo', '2012-07-14') ON DUPLICATE KEY UPDATE title = 'Kyurem VS the Sacred Swordsman: Keldeo', airdate = LEAST(airdate, '2012-07-14');
INSERT INTO dubs (code, title, airdate) VALUES ('M15', 'Pokémon the Movie: Kyurem vs. The Sword of Justice', '2012-12-08') ON DUPLICATE KEY UPDATE title = 'Pokémon the Movie: Kyurem vs. The Sword of Justice', airdate = LEAST(airdate, '2012-12-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW081', 4, 81, 'Tesseed Research Institute! Iris and Baivanilla!!', '2012-05-31') ON DUPLICATE KEY UPDATE series = 4, number = 81, title = 'Tesseed Research Institute! Iris and Baivanilla!!', airdate = LEAST(airdate, '2012-05-31');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW081', 1, 734, 'Crisis at Ferroseed Research!', '2012-09-29') ON DUPLICATE KEY UPDATE season = 1, number = 734, title = 'Crisis at Ferroseed Research!', airdate = LEAST(airdate, '2012-09-29');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW082', 4, 82, 'Movie Showdown! Sortie, Isshu Defense Group!!', '2012-06-07') ON DUPLICATE KEY UPDATE series = 4, number = 82, title = 'Movie Showdown! Sortie, Isshu Defense Group!!', airdate = LEAST(airdate, '2012-06-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW082', 1, 735, 'An Epic Defense Force!', '2012-10-06') ON DUPLICATE KEY UPDATE season = 1, number = 735, title = 'An Epic Defense Force!', airdate = LEAST(airdate, '2012-10-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW083', 4, 83, 'Fierce Fighting at Tachiwaki Gym! VS Homika!! (Part 1)', '2012-06-14') ON DUPLICATE KEY UPDATE series = 4, number = 83, title = 'Fierce Fighting at Tachiwaki Gym! VS Homika!! (Part 1)', airdate = LEAST(airdate, '2012-06-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW083', 1, 736, 'Rocking The Virbank Gym! Part 1', '2012-10-13') ON DUPLICATE KEY UPDATE season = 1, number = 736, title = 'Rocking The Virbank Gym! Part 1', airdate = LEAST(airdate, '2012-10-13');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW084', 4, 84, 'Fierce Fighting at Tachiwaki Gym! VS Homika!! (Part 2)', '2012-06-14') ON DUPLICATE KEY UPDATE series = 4, number = 84, title = 'Fierce Fighting at Tachiwaki Gym! VS Homika!! (Part 2)', airdate = LEAST(airdate, '2012-06-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW084', 1, 737, 'Rocking The Virbank Gym! Part 2', '2012-10-20') ON DUPLICATE KEY UPDATE season = 1, number = 737, title = 'Rocking The Virbank Gym! Part 2', airdate = LEAST(airdate, '2012-10-20');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW085', 4, 85, 'Sing, Meloetta! The Melody of Love!!', '2012-06-21') ON DUPLICATE KEY UPDATE series = 4, number = 85, title = 'Sing, Meloetta! The Melody of Love!!', airdate = LEAST(airdate, '2012-06-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW085', 1, 738, 'All for the Love of Meloetta!', '2012-10-27') ON DUPLICATE KEY UPDATE season = 1, number = 738, title = 'All for the Love of Meloetta!', airdate = LEAST(airdate, '2012-10-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW086', 4, 86, 'Pochama VS Yanappu! The Magnificent Battle!!', '2012-06-28') ON DUPLICATE KEY UPDATE series = 4, number = 86, title = 'Pochama VS Yanappu! The Magnificent Battle!!', airdate = LEAST(airdate, '2012-06-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW086', 1, 739, 'Piplup, Pansage, and a Meeting of the Times!', '2012-11-03') ON DUPLICATE KEY UPDATE season = 1, number = 739, title = 'Piplup, Pansage, and a Meeting of the Times!', airdate = LEAST(airdate, '2012-11-03');
INSERT INTO episodes (code, title, airdate) VALUES ('PK23', 'Sing Meloetta: Search for the Rinka Berries', '2012-07-03') ON DUPLICATE KEY UPDATE title = 'Sing Meloetta: Search for the Rinka Berries', airdate = LEAST(airdate, '2012-07-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW087', 4, 87, 'Survival on the Island of Iwark!', '2012-07-05') ON DUPLICATE KEY UPDATE series = 4, number = 87, title = 'Survival on the Island of Iwark!', airdate = LEAST(airdate, '2012-07-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW087', 1, 740, 'Expedition to Onix Island!', '2012-11-10') ON DUPLICATE KEY UPDATE season = 1, number = 740, title = 'Expedition to Onix Island!', airdate = LEAST(airdate, '2012-11-10');
INSERT INTO episodes (code, title, airdate) VALUES ('PK24', 'Meloetta\'s Dazzling Recital', '2012-07-14') ON DUPLICATE KEY UPDATE title = 'Meloetta\'s Dazzling Recital', airdate = LEAST(airdate, '2012-07-14');
INSERT INTO dubs (code, title, airdate) VALUES ('PK24', 'Meloetta\'s Moonlight Serenade', '2013-02-15') ON DUPLICATE KEY UPDATE title = 'Meloetta\'s Moonlight Serenade', airdate = LEAST(airdate, '2013-02-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW088', 4, 88, 'Sommelier Detective Dent! The Mystery of the Missing Kumasyun!!', '2012-07-19') ON DUPLICATE KEY UPDATE series = 4, number = 88, title = 'Sommelier Detective Dent! The Mystery of the Missing Kumasyun!!', airdate = LEAST(airdate, '2012-07-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW088', 1, 741, 'The Mystery of the Missing Cubchoo!', '2012-11-17') ON DUPLICATE KEY UPDATE season = 1, number = 741, title = 'The Mystery of the Missing Cubchoo!', airdate = LEAST(airdate, '2012-11-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW089', 4, 89, 'Iris and the Roughneck Kairyu!', '2012-07-26') ON DUPLICATE KEY UPDATE series = 4, number = 89, title = 'Iris and the Roughneck Kairyu!', airdate = LEAST(airdate, '2012-07-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW089', 1, 742, 'Iris and the Rogue Dragonite!', '2012-11-24') ON DUPLICATE KEY UPDATE season = 1, number = 742, title = 'Iris and the Rogue Dragonite!', airdate = LEAST(airdate, '2012-11-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW090', 4, 90, 'The Junior Cup Gets Underway! Kairyu VS Tunbear!!', '2012-08-02') ON DUPLICATE KEY UPDATE series = 4, number = 90, title = 'The Junior Cup Gets Underway! Kairyu VS Tunbear!!', airdate = LEAST(airdate, '2012-08-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW090', 1, 743, 'Jostling for the Junior Cup!', '2012-12-01') ON DUPLICATE KEY UPDATE season = 1, number = 743, title = 'Jostling for the Junior Cup!', airdate = LEAST(airdate, '2012-12-01');
INSERT INTO episodes (code, title, airdate) VALUES ('UN17', 'Pocket Monsters 15th Anniversary Celebration! A Super Ranking Special on Noteworthy Movie Scenes!!', '2012-08-16') ON DUPLICATE KEY UPDATE title = 'Pocket Monsters 15th Anniversary Celebration! A Super Ranking Special on Noteworthy Movie Scenes!!', airdate = LEAST(airdate, '2012-08-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW091', 4, 91, 'Power Battle! Iris VS Hikari!!', '2012-08-23') ON DUPLICATE KEY UPDATE series = 4, number = 91, title = 'Power Battle! Iris VS Hikari!!', airdate = LEAST(airdate, '2012-08-23');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW091', 1, 744, 'Battling Authority Once Again!', '2012-12-08') ON DUPLICATE KEY UPDATE season = 1, number = 744, title = 'Battling Authority Once Again!', airdate = LEAST(airdate, '2012-12-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW092', 4, 92, 'Satoshi, Iris, and Shooty! The Last Battle!!', '2012-08-30') ON DUPLICATE KEY UPDATE series = 4, number = 92, title = 'Satoshi, Iris, and Shooty! The Last Battle!!', airdate = LEAST(airdate, '2012-08-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW092', 1, 745, 'Ash, Iris and Trip: Then There Were Three!', '2012-12-15') ON DUPLICATE KEY UPDATE season = 1, number = 745, title = 'Ash, Iris and Trip: Then There Were Three!', airdate = LEAST(airdate, '2012-12-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW093', 4, 93, 'The Junior Cup of Farewells and Meetings!', '2012-09-06') ON DUPLICATE KEY UPDATE series = 4, number = 93, title = 'The Junior Cup of Farewells and Meetings!', airdate = LEAST(airdate, '2012-09-06');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW093', 1, 746, 'Goodbye, Junior Cup - Hello Adventure!', '2012-12-22') ON DUPLICATE KEY UPDATE season = 1, number = 746, title = 'Goodbye, Junior Cup - Hello Adventure!', airdate = LEAST(airdate, '2012-12-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW094', 4, 94, 'Seigaiha Gym Battle! Mantain VS Daikenki!!', '2012-09-13') ON DUPLICATE KEY UPDATE series = 4, number = 94, title = 'Seigaiha Gym Battle! Mantain VS Daikenki!!', airdate = LEAST(airdate, '2012-09-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW094', 1, 747, 'The Road to Humilau!', '2013-01-05') ON DUPLICATE KEY UPDATE season = 1, number = 747, title = 'The Road to Humilau!', airdate = LEAST(airdate, '2013-01-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW095', 4, 95, 'Pokémon Nursery School Uproar! Washibon and Valchai!', '2012-09-20') ON DUPLICATE KEY UPDATE series = 4, number = 95, title = 'Pokémon Nursery School Uproar! Washibon and Valchai!', airdate = LEAST(airdate, '2012-09-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW095', 1, 748, 'Unrest at the Nursery!', '2013-01-12') ON DUPLICATE KEY UPDATE season = 1, number = 748, title = 'Unrest at the Nursery!', airdate = LEAST(airdate, '2013-01-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW096', 4, 96, 'Meloetta and the Undersea Temple!', '2012-09-27') ON DUPLICATE KEY UPDATE series = 4, number = 96, title = 'Meloetta and the Undersea Temple!', airdate = LEAST(airdate, '2012-09-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW096', 1, 749, 'Meloetta and the Undersea Temple!', '2013-01-19') ON DUPLICATE KEY UPDATE season = 1, number = 749, title = 'Meloetta and the Undersea Temple!', airdate = LEAST(airdate, '2013-01-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW097', 4, 97, 'The Reijuu Formes Advance! Isshu\'s Greatest Crisis!!', '2012-10-04') ON DUPLICATE KEY UPDATE series = 4, number = 97, title = 'The Reijuu Formes Advance! Isshu\'s Greatest Crisis!!', airdate = LEAST(airdate, '2012-10-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW097', 1, 750, 'Unova\'s Survival Crisis!', '2013-01-26') ON DUPLICATE KEY UPDATE season = 1, number = 750, title = 'Unova\'s Survival Crisis!', airdate = LEAST(airdate, '2013-01-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW098', 4, 98, 'The Most Magnificent Pokémon in the World!? Chillaccino VS Tsutarja!', '2012-10-11') ON DUPLICATE KEY UPDATE series = 4, number = 98, title = 'The Most Magnificent Pokémon in the World!? Chillaccino VS Tsutarja!', airdate = LEAST(airdate, '2012-10-11');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW098', 1, 751, 'Beauties Battling for Pride and Prestige!', '2013-02-02') ON DUPLICATE KEY UPDATE season = 1, number = 751, title = 'Beauties Battling for Pride and Prestige!', airdate = LEAST(airdate, '2013-02-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW099', 4, 99, 'The Tag Battle of the Sky and the Earth!', '2012-10-18') ON DUPLICATE KEY UPDATE series = 4, number = 99, title = 'The Tag Battle of the Sky and the Earth!', airdate = LEAST(airdate, '2012-10-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW099', 1, 752, 'A Surface to Air Tag Battle Team!', '2013-02-09') ON DUPLICATE KEY UPDATE season = 1, number = 752, title = 'A Surface to Air Tag Battle Team!', airdate = LEAST(airdate, '2013-02-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW100', 4, 100, 'Iris Returns to the Village of Dragons!', '2012-10-25') ON DUPLICATE KEY UPDATE series = 4, number = 100, title = 'Iris Returns to the Village of Dragons!', airdate = LEAST(airdate, '2012-10-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW100', 1, 753, 'A Village Homecoming!', '2013-02-16') ON DUPLICATE KEY UPDATE season = 1, number = 753, title = 'A Village Homecoming!', airdate = LEAST(airdate, '2013-02-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW101', 4, 101, 'Soryu Gym! Iris VS Shaga!!', '2012-11-08') ON DUPLICATE KEY UPDATE series = 4, number = 101, title = 'Soryu Gym! Iris VS Shaga!!', airdate = LEAST(airdate, '2012-11-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW101', 1, 754, 'Drayden Versus Iris: Past, Present, and Future!', '2013-02-23') ON DUPLICATE KEY UPDATE season = 1, number = 754, title = 'Drayden Versus Iris: Past, Present, and Future!', airdate = LEAST(airdate, '2013-02-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW102', 4, 102, 'Team Eievui Moves Out! Pokémon Rescue Team!!', '2012-11-15') ON DUPLICATE KEY UPDATE series = 4, number = 102, title = 'Team Eievui Moves Out! Pokémon Rescue Team!!', airdate = LEAST(airdate, '2012-11-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW102', 1, 755, 'Team Eevee and the Pokémon Rescue Squad!', '2013-03-02') ON DUPLICATE KEY UPDATE season = 1, number = 755, title = 'Team Eevee and the Pokémon Rescue Squad!', airdate = LEAST(airdate, '2013-03-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW103', 4, 103, 'The Isshu League Higaki Conference Gets Underway! Satoshi VS Shooty!!', '2012-11-22') ON DUPLICATE KEY UPDATE series = 4, number = 103, title = 'The Isshu League Higaki Conference Gets Underway! Satoshi VS Shooty!!', airdate = LEAST(airdate, '2012-11-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW103', 1, 756, 'Curtain Up, Unova League!', '2013-03-09') ON DUPLICATE KEY UPDATE season = 1, number = 756, title = 'Curtain Up, Unova League!', airdate = LEAST(airdate, '2013-03-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW104', 4, 104, 'Fierce Fighting! Win Out in the Rival Battle!!', '2012-11-29') ON DUPLICATE KEY UPDATE series = 4, number = 104, title = 'Fierce Fighting! Win Out in the Rival Battle!!', airdate = LEAST(airdate, '2012-11-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW104', 1, 757, 'Mission: Defeat Your Rival!', '2013-03-16') ON DUPLICATE KEY UPDATE season = 1, number = 757, title = 'Mission: Defeat Your Rival!', airdate = LEAST(airdate, '2013-03-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW105', 4, 105, 'Kibago Gets Lost!', '2012-12-06') ON DUPLICATE KEY UPDATE series = 4, number = 105, title = 'Kibago Gets Lost!', airdate = LEAST(airdate, '2012-12-06');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW105', 1, 758, 'Lost at the League!', '2013-03-23') ON DUPLICATE KEY UPDATE season = 1, number = 758, title = 'Lost at the League!', airdate = LEAST(airdate, '2013-03-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW106', 4, 106, 'Dageki Appears! Satoshi VS Kenyan!!', '2012-12-13') ON DUPLICATE KEY UPDATE series = 4, number = 106, title = 'Dageki Appears! Satoshi VS Kenyan!!', airdate = LEAST(airdate, '2012-12-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW106', 1, 759, 'Strong Strategy Steals the Show!', '2013-03-30') ON DUPLICATE KEY UPDATE season = 1, number = 759, title = 'Strong Strategy Steals the Show!', airdate = LEAST(airdate, '2013-03-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW107', 4, 107, 'Satoshi VS Kotetsu! Secret Weapon Sazandora!!', '2012-12-20') ON DUPLICATE KEY UPDATE series = 4, number = 107, title = 'Satoshi VS Kotetsu! Secret Weapon Sazandora!!', airdate = LEAST(airdate, '2012-12-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW107', 1, 760, 'Cameron\'s Secret Weapon!', '2013-04-06') ON DUPLICATE KEY UPDATE season = 1, number = 760, title = 'Cameron\'s Secret Weapon!', airdate = LEAST(airdate, '2013-04-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW108', 4, 108, 'Isshu League Conclusion! Pikachu VS Lucario!!', '2013-01-10') ON DUPLICATE KEY UPDATE series = 4, number = 108, title = 'Isshu League Conclusion! Pikachu VS Lucario!!', airdate = LEAST(airdate, '2013-01-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW108', 1, 761, 'A Unova League Evolution!', '2013-04-13') ON DUPLICATE KEY UPDATE season = 1, number = 761, title = 'A Unova League Evolution!', airdate = LEAST(airdate, '2013-04-13');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW109', 4, 109, 'The Araragi Institute! A New Journey!!', '2013-01-17') ON DUPLICATE KEY UPDATE series = 4, number = 109, title = 'The Araragi Institute! A New Journey!!', airdate = LEAST(airdate, '2013-01-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW109', 1, 762, 'New Places... Familiar Faces!', '2013-04-20') ON DUPLICATE KEY UPDATE season = 1, number = 762, title = 'New Places... Familiar Faces!', airdate = LEAST(airdate, '2013-04-20');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW110', 4, 110, 'A Friend...His Name is N!', '2013-01-24') ON DUPLICATE KEY UPDATE series = 4, number = 110, title = 'A Friend...His Name is N!', airdate = LEAST(airdate, '2013-01-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW110', 1, 763, 'The Name\'s N!', '2013-04-27') ON DUPLICATE KEY UPDATE season = 1, number = 763, title = 'The Name\'s N!', airdate = LEAST(airdate, '2013-04-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW111', 4, 111, 'The New Gym Leader - Cheren!', '2013-01-31') ON DUPLICATE KEY UPDATE series = 4, number = 111, title = 'The New Gym Leader - Cheren!', airdate = LEAST(airdate, '2013-01-31');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW111', 1, 764, 'There\'s a New Gym Leader in Town!', '2013-05-04') ON DUPLICATE KEY UPDATE season = 1, number = 764, title = 'There\'s a New Gym Leader in Town!', airdate = LEAST(airdate, '2013-05-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW112', 4, 112, 'Achroma VS Handsome! Plasma-dan\'s Conspiracy!!', '2013-02-07') ON DUPLICATE KEY UPDATE series = 4, number = 112, title = 'Achroma VS Handsome! Plasma-dan\'s Conspiracy!!', airdate = LEAST(airdate, '2013-02-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW112', 1, 765, 'Team Plasma\'s Pokémon Power Plot!', '2013-05-11') ON DUPLICATE KEY UPDATE season = 1, number = 765, title = 'Team Plasma\'s Pokémon Power Plot!', airdate = LEAST(airdate, '2013-05-11');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW113', 4, 113, 'The Foggy Sangi Ranch! Denryu\'s Light!!', '2013-02-14') ON DUPLICATE KEY UPDATE series = 4, number = 113, title = 'The Foggy Sangi Ranch! Denryu\'s Light!!', airdate = LEAST(airdate, '2013-02-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW113', 1, 766, 'The Light of Floccesy Ranch!', '2013-05-18') ON DUPLICATE KEY UPDATE season = 1, number = 766, title = 'The Light of Floccesy Ranch!', airdate = LEAST(airdate, '2013-05-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW114', 4, 114, 'N, Again! Operation Rescue Warrgle!!', '2013-02-21') ON DUPLICATE KEY UPDATE series = 4, number = 114, title = 'N, Again! Operation Rescue Warrgle!!', airdate = LEAST(airdate, '2013-02-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW114', 1, 767, 'Saving Braviary!', '2013-05-25') ON DUPLICATE KEY UPDATE season = 1, number = 767, title = 'Saving Braviary!', airdate = LEAST(airdate, '2013-05-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW115', 4, 115, 'Hurry Up! The Pokémon Gulf Coast Rescue Squad!!', '2013-02-28') ON DUPLICATE KEY UPDATE series = 4, number = 115, title = 'Hurry Up! The Pokémon Gulf Coast Rescue Squad!!', airdate = LEAST(airdate, '2013-02-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW115', 1, 768, 'The Pokémon Harbor Patrol!', '2013-06-01') ON DUPLICATE KEY UPDATE season = 1, number = 768, title = 'The Pokémon Harbor Patrol!', airdate = LEAST(airdate, '2013-06-01');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW116', 4, 116, 'Burn, Lizardon! VS Kairyu!', '2013-03-07') ON DUPLICATE KEY UPDATE series = 4, number = 116, title = 'Burn, Lizardon! VS Kairyu!', airdate = LEAST(airdate, '2013-03-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW116', 1, 769, 'The Fires of a Red-Hot Reunion!', '2013-06-08') ON DUPLICATE KEY UPDATE season = 1, number = 769, title = 'The Fires of a Red-Hot Reunion!', airdate = LEAST(airdate, '2013-06-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW117', 4, 117, 'Plasma-dan\'s Ambition! The Controlled Pokémon!!', '2013-03-14') ON DUPLICATE KEY UPDATE series = 4, number = 117, title = 'Plasma-dan\'s Ambition! The Controlled Pokémon!!', airdate = LEAST(airdate, '2013-03-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW117', 1, 770, 'Team Plasma\'s Pokémon Manipulation!', '2013-06-15') ON DUPLICATE KEY UPDATE season = 1, number = 770, title = 'Team Plasma\'s Pokémon Manipulation!', airdate = LEAST(airdate, '2013-06-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW118', 4, 118, 'N\'s Secret... To the Other Side of the Mist!', '2013-03-21') ON DUPLICATE KEY UPDATE series = 4, number = 118, title = 'N\'s Secret... To the Other Side of the Mist!', airdate = LEAST(airdate, '2013-03-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW118', 1, 771, 'Secrets From Out of the Fog!', '2013-06-22') ON DUPLICATE KEY UPDATE season = 1, number = 771, title = 'Secrets From Out of the Fog!', airdate = LEAST(airdate, '2013-06-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW119', 4, 119, 'Rocket-dan VS Plasma-dan! Nyarth and Achroma!!', '2013-03-28') ON DUPLICATE KEY UPDATE series = 4, number = 119, title = 'Rocket-dan VS Plasma-dan! Nyarth and Achroma!!', airdate = LEAST(airdate, '2013-03-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW119', 1, 772, 'Meowth, Colress and Team Rivalry!', '2013-06-29') ON DUPLICATE KEY UPDATE season = 1, number = 772, title = 'Meowth, Colress and Team Rivalry!', airdate = LEAST(airdate, '2013-06-29');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW120', 4, 120, 'The White Ruins! Satoshi VS N!!', '2013-04-04') ON DUPLICATE KEY UPDATE series = 4, number = 120, title = 'The White Ruins! Satoshi VS N!!', airdate = LEAST(airdate, '2013-04-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW120', 1, 773, 'Ash and N: A Clash of Ideals!', '2013-07-06') ON DUPLICATE KEY UPDATE season = 1, number = 773, title = 'Ash and N: A Clash of Ideals!', airdate = LEAST(airdate, '2013-07-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW121', 4, 121, 'Plasma-dan Attacks! Ceremony of Revival!!', '2013-04-11') ON DUPLICATE KEY UPDATE series = 4, number = 121, title = 'Plasma-dan Attacks! Ceremony of Revival!!', airdate = LEAST(airdate, '2013-04-11');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW121', 1, 774, 'Team Plasma and the Awakening Ceremony!', '2013-07-13') ON DUPLICATE KEY UPDATE season = 1, number = 774, title = 'Team Plasma and the Awakening Ceremony!', airdate = LEAST(airdate, '2013-07-13');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW122', 4, 122, 'Reshiram VS N! Beyond Truth and Ideals!!', '2013-04-18') ON DUPLICATE KEY UPDATE series = 4, number = 122, title = 'Reshiram VS N! Beyond Truth and Ideals!!', airdate = LEAST(airdate, '2013-04-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW122', 1, 775, 'What Lies Beyond Truth and Ideals!', '2013-07-20') ON DUPLICATE KEY UPDATE season = 1, number = 775, title = 'What Lies Beyond Truth and Ideals!', airdate = LEAST(airdate, '2013-07-20');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW123', 4, 123, 'Farewell, Isshu! Setting Sail Once Again!!', '2013-04-25') ON DUPLICATE KEY UPDATE series = 4, number = 123, title = 'Farewell, Isshu! Setting Sail Once Again!!', airdate = LEAST(airdate, '2013-04-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW123', 1, 776, 'Farewell, Unova! Setting Sail for New Adventures!', '2013-07-27') ON DUPLICATE KEY UPDATE season = 1, number = 776, title = 'Farewell, Unova! Setting Sail for New Adventures!', airdate = LEAST(airdate, '2013-07-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW124', 4, 124, 'The Dangerously Sweet Honey!', '2013-05-02') ON DUPLICATE KEY UPDATE series = 4, number = 124, title = 'The Dangerously Sweet Honey!', airdate = LEAST(airdate, '2013-05-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW124', 1, 777, 'Danger, Sweet as Honey!', '2013-08-03') ON DUPLICATE KEY UPDATE season = 1, number = 777, title = 'Danger, Sweet as Honey!', airdate = LEAST(airdate, '2013-08-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW125', 4, 125, 'Sommelier Detective Dent! The Locked Room of the Ocean!!', '2013-05-09') ON DUPLICATE KEY UPDATE series = 4, number = 125, title = 'Sommelier Detective Dent! The Locked Room of the Ocean!!', airdate = LEAST(airdate, '2013-05-09');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW125', 1, 778, 'Cilan and the Case of the Purrloin Witness!', '2013-08-10') ON DUPLICATE KEY UPDATE season = 1, number = 778, title = 'Cilan and the Case of the Purrloin Witness!', airdate = LEAST(airdate, '2013-08-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW126', 4, 126, 'Goodbye Mijumaru!? The Path to Being Hotachi King!', '2013-05-16') ON DUPLICATE KEY UPDATE series = 4, number = 126, title = 'Goodbye Mijumaru!? The Path to Being Hotachi King!', airdate = LEAST(airdate, '2013-05-16');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW126', 1, 779, 'Crowning the Scalchop King!', '2013-08-17') ON DUPLICATE KEY UPDATE season = 1, number = 779, title = 'Crowning the Scalchop King!', airdate = LEAST(airdate, '2013-08-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW127', 4, 127, 'Phantom Island! The Zoroark in the Fog!!', '2013-05-23') ON DUPLICATE KEY UPDATE series = 4, number = 127, title = 'Phantom Island! The Zoroark in the Fog!!', airdate = LEAST(airdate, '2013-05-23');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW127', 1, 780, 'The Island of Illusions!', '2013-08-24') ON DUPLICATE KEY UPDATE season = 1, number = 780, title = 'The Island of Illusions!', airdate = LEAST(airdate, '2013-08-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW128', 4, 128, 'Rotom VS Dr. Okido!', '2013-05-30') ON DUPLICATE KEY UPDATE series = 4, number = 128, title = 'Rotom VS Dr. Okido!', airdate = LEAST(airdate, '2013-05-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW128', 1, 781, 'To Catch a Rotom!', '2013-08-31') ON DUPLICATE KEY UPDATE season = 1, number = 781, title = 'To Catch a Rotom!', airdate = LEAST(airdate, '2013-08-31');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW129', 4, 129, 'The Pirate Kings of the Decolora Archipelago!', '2013-06-06') ON DUPLICATE KEY UPDATE series = 4, number = 129, title = 'The Pirate Kings of the Decolora Archipelago!', airdate = LEAST(airdate, '2013-06-06');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW129', 1, 782, 'The Pirates of Decolore!', '2013-09-07') ON DUPLICATE KEY UPDATE season = 1, number = 782, title = 'The Pirates of Decolore!', airdate = LEAST(airdate, '2013-09-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW130', 4, 130, 'Satoshi and Butterfree! Until the Day We Meet Again!!', '2013-06-13') ON DUPLICATE KEY UPDATE series = 4, number = 130, title = 'Satoshi and Butterfree! Until the Day We Meet Again!!', airdate = LEAST(airdate, '2013-06-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW130', 1, 783, 'Butterfree and Me!', '2013-09-14') ON DUPLICATE KEY UPDATE season = 1, number = 783, title = 'Butterfree and Me!', airdate = LEAST(airdate, '2013-09-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW131', 4, 131, 'Satoshi and Iris\'s Severed Relationship!? The Path of Separation!!', '2013-06-20') ON DUPLICATE KEY UPDATE series = 4, number = 131, title = 'Satoshi and Iris\'s Severed Relationship!? The Path of Separation!!', airdate = LEAST(airdate, '2013-06-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW131', 1, 784, 'The Path That Leads to Goodbye!', '2013-09-21') ON DUPLICATE KEY UPDATE season = 1, number = 784, title = 'The Path That Leads to Goodbye!', airdate = LEAST(airdate, '2013-09-21');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW132', 4, 132, 'Wish on Jirachi! The Seven-Day Miracle!!', '2013-06-27') ON DUPLICATE KEY UPDATE series = 4, number = 132, title = 'Wish on Jirachi! The Seven-Day Miracle!!', airdate = LEAST(airdate, '2013-06-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW132', 1, 785, 'Searching for a Wish!', '2013-09-28') ON DUPLICATE KEY UPDATE season = 1, number = 785, title = 'Searching for a Wish!', airdate = LEAST(airdate, '2013-09-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW133', 4, 133, 'Shining Flying Saucer! Ohbem\'s Town!!', '2013-07-04') ON DUPLICATE KEY UPDATE series = 4, number = 133, title = 'Shining Flying Saucer! Ohbem\'s Town!!', airdate = LEAST(airdate, '2013-07-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW133', 1, 786, 'Capacia Island UFO!', '2013-10-05') ON DUPLICATE KEY UPDATE season = 1, number = 786, title = 'Capacia Island UFO!', airdate = LEAST(airdate, '2013-10-05');
INSERT INTO episodes (code, title, airdate) VALUES ('SS026', 'Mewtwo: The Prologue to its Awakening', '2013-07-11') ON DUPLICATE KEY UPDATE title = 'Mewtwo: The Prologue to its Awakening', airdate = LEAST(airdate, '2013-07-11');
INSERT INTO dubs (code, title, airdate) VALUES ('SS026', 'Mewtwo — Prologue to Awakening', '2014-01-11') ON DUPLICATE KEY UPDATE title = 'Mewtwo — Prologue to Awakening', airdate = LEAST(airdate, '2014-01-11');
INSERT INTO episodes (code, title, airdate) VALUES ('PK25', 'Pikachu and Eievui Friends', '2013-07-13') ON DUPLICATE KEY UPDATE title = 'Pikachu and Eievui Friends', airdate = LEAST(airdate, '2013-07-13');
INSERT INTO dubs (code, title, airdate) VALUES ('PK25', 'Eevee & Friends', '2013-12-06') ON DUPLICATE KEY UPDATE title = 'Eevee & Friends', airdate = LEAST(airdate, '2013-12-06');
INSERT INTO episodes (code, title, airdate) VALUES ('M16', 'Extreme Speed Genesect: Mewtwo Awakens', '2013-07-13') ON DUPLICATE KEY UPDATE title = 'Extreme Speed Genesect: Mewtwo Awakens', airdate = LEAST(airdate, '2013-07-13');
INSERT INTO dubs (code, title, airdate) VALUES ('M16', 'Pokémon the Movie: Genesect and The Legend Awakened', '2013-10-19') ON DUPLICATE KEY UPDATE title = 'Pokémon the Movie: Genesect and The Legend Awakened', airdate = LEAST(airdate, '2013-10-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW134', 4, 134, 'Pansy Appears! Erikiteru and Gogoat!!', '2013-07-18') ON DUPLICATE KEY UPDATE series = 4, number = 134, title = 'Pansy Appears! Erikiteru and Gogoat!!', airdate = LEAST(airdate, '2013-07-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW134', 1, 787, 'The Journalist from Another Region!', '2013-10-12') ON DUPLICATE KEY UPDATE season = 1, number = 787, title = 'The Journalist from Another Region!', airdate = LEAST(airdate, '2013-10-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW135', 4, 135, 'Mystery of the Treasure! Deserted Island Adventure!!', '2013-07-25') ON DUPLICATE KEY UPDATE series = 4, number = 135, title = 'Mystery of the Treasure! Deserted Island Adventure!!', airdate = LEAST(airdate, '2013-07-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW135', 1, 788, 'Mystery on a Deserted Island!', '2013-10-19') ON DUPLICATE KEY UPDATE season = 1, number = 788, title = 'Mystery on a Deserted Island!', airdate = LEAST(airdate, '2013-10-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW136', 4, 136, 'Ibuki and Iris! The Different Colored Crimgan!!', '2013-08-01') ON DUPLICATE KEY UPDATE series = 4, number = 136, title = 'Ibuki and Iris! The Different Colored Crimgan!!', airdate = LEAST(airdate, '2013-08-01');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW136', 1, 789, 'A Pokémon of a Different Color!', '2013-10-26') ON DUPLICATE KEY UPDATE season = 1, number = 789, title = 'A Pokémon of a Different Color!', airdate = LEAST(airdate, '2013-10-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW137', 4, 137, 'Onvern Appears! Legend of the Comet and the Hero!!', '2013-08-15') ON DUPLICATE KEY UPDATE series = 4, number = 137, title = 'Onvern Appears! Legend of the Comet and the Hero!!', airdate = LEAST(airdate, '2013-08-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW137', 1, 790, 'Celebrating the Hero\'s Comet!', '2013-11-02') ON DUPLICATE KEY UPDATE season = 1, number = 790, title = 'Celebrating the Hero\'s Comet!', airdate = LEAST(airdate, '2013-11-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW138', 4, 138, 'GoGo Gogoat!', '2013-08-22') ON DUPLICATE KEY UPDATE series = 4, number = 138, title = 'GoGo Gogoat!', airdate = LEAST(airdate, '2013-08-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW138', 1, 791, 'Go, Go Gogoat!', '2013-11-09') ON DUPLICATE KEY UPDATE season = 1, number = 791, title = 'Go, Go Gogoat!', airdate = LEAST(airdate, '2013-11-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW139', 4, 139, 'Emonga Joins Rocket-dan!', '2013-09-05') ON DUPLICATE KEY UPDATE series = 4, number = 139, title = 'Emonga Joins Rocket-dan!', airdate = LEAST(airdate, '2013-09-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW139', 1, 792, 'Team Rocket\'s Shocking Recruit!', '2013-11-16') ON DUPLICATE KEY UPDATE season = 1, number = 792, title = 'Team Rocket\'s Shocking Recruit!', airdate = LEAST(airdate, '2013-11-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW140', 4, 140, 'Dent VS the Ice Challenger! The Crisis of Sanyou Gym!!', '2013-09-12') ON DUPLICATE KEY UPDATE series = 4, number = 140, title = 'Dent VS the Ice Challenger! The Crisis of Sanyou Gym!!', airdate = LEAST(airdate, '2013-09-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW140', 1, 793, 'Survival of the Striaton Gym!', '2013-11-23') ON DUPLICATE KEY UPDATE season = 1, number = 793, title = 'Survival of the Striaton Gym!', airdate = LEAST(airdate, '2013-11-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW141', 4, 141, 'Best Wishes! Until the Day We Meet Again!!', '2013-09-19') ON DUPLICATE KEY UPDATE series = 4, number = 141, title = 'Best Wishes! Until the Day We Meet Again!!', airdate = LEAST(airdate, '2013-09-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW141', 1, 794, 'Best Wishes Until We Meet Again!', '2013-11-30') ON DUPLICATE KEY UPDATE season = 1, number = 794, title = 'Best Wishes Until We Meet Again!', airdate = LEAST(airdate, '2013-11-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('BW142', 4, 142, 'My Dream, Pokémon Master!!', '2013-09-26') ON DUPLICATE KEY UPDATE series = 4, number = 142, title = 'My Dream, Pokémon Master!!', airdate = LEAST(airdate, '2013-09-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('BW142', 1, 795, 'The Dream Continues!', '2013-12-07') ON DUPLICATE KEY UPDATE season = 1, number = 795, title = 'The Dream Continues!', airdate = LEAST(airdate, '2013-12-07');
INSERT INTO episodes (code, title, airdate) VALUES ('TV04', 'Pocket Monsters: The Origin', '2013-10-02') ON DUPLICATE KEY UPDATE title = 'Pocket Monsters: The Origin', airdate = LEAST(airdate, '2013-10-02');
INSERT INTO dubs (code, title, airdate) VALUES ('TV04', 'Pokémon Origins', '2013-11-15') ON DUPLICATE KEY UPDATE title = 'Pokémon Origins', airdate = LEAST(airdate, '2013-11-15');
INSERT INTO episodes (code, title, airdate) VALUES ('SS027', 'Dent and Takeshi! Gyarados\'s Imperial Rage!!', '2013-10-03') ON DUPLICATE KEY UPDATE title = 'Dent and Takeshi! Gyarados\'s Imperial Rage!!', airdate = LEAST(airdate, '2013-10-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY001', 5, 1, 'We\'ve Arrived In The Kalos Region! Dreams and Adventures Begin!!', '2013-10-17') ON DUPLICATE KEY UPDATE series = 5, number = 1, title = 'We\'ve Arrived In The Kalos Region! Dreams and Adventures Begin!!', airdate = LEAST(airdate, '2013-10-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY001', 1, 796, 'Kalos, Where Dreams and Adventures Begin!', '2013-10-19') ON DUPLICATE KEY UPDATE season = 1, number = 796, title = 'Kalos, Where Dreams and Adventures Begin!', airdate = LEAST(airdate, '2013-10-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY002', 5, 2, 'Mega Evolution and Prism Tower!', '2013-10-17') ON DUPLICATE KEY UPDATE series = 5, number = 2, title = 'Mega Evolution and Prism Tower!', airdate = LEAST(airdate, '2013-10-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY002', 1, 797, 'Lumiose City Pursuit!', '2013-10-19') ON DUPLICATE KEY UPDATE season = 1, number = 797, title = 'Lumiose City Pursuit!', airdate = LEAST(airdate, '2013-10-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY003', 5, 3, 'Keromatsu VS Yayakoma! Aerial Battle Maneuvers!!', '2013-10-24') ON DUPLICATE KEY UPDATE series = 5, number = 3, title = 'Keromatsu VS Yayakoma! Aerial Battle Maneuvers!!', airdate = LEAST(airdate, '2013-10-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY003', 1, 798, 'A Battle of Aerial Mobility!', '2014-02-01') ON DUPLICATE KEY UPDATE season = 1, number = 798, title = 'A Battle of Aerial Mobility!', airdate = LEAST(airdate, '2014-02-01');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY004', 5, 4, 'Pikachu and Dedenne! Cheek Rub!!', '2013-10-31') ON DUPLICATE KEY UPDATE series = 5, number = 4, title = 'Pikachu and Dedenne! Cheek Rub!!', airdate = LEAST(airdate, '2013-10-31');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY004', 1, 799, 'A Shockingly Cheeky Friendship!', '2014-02-08') ON DUPLICATE KEY UPDATE season = 1, number = 799, title = 'A Shockingly Cheeky Friendship!', airdate = LEAST(airdate, '2014-02-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY005', 5, 5, 'The Hakudan Gym Battle! The Magnificent Viviyon\'s Dance Battle!!', '2013-11-07') ON DUPLICATE KEY UPDATE series = 5, number = 5, title = 'The Hakudan Gym Battle! The Magnificent Viviyon\'s Dance Battle!!', airdate = LEAST(airdate, '2013-11-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY005', 1, 800, 'A Blustery Santalune Gym Battle!', '2014-02-15') ON DUPLICATE KEY UPDATE season = 1, number = 800, title = 'A Blustery Santalune Gym Battle!', airdate = LEAST(airdate, '2014-02-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY006', 5, 6, 'Decisive Battle on the Ice! Pikachu VS Viviyon!!', '2013-11-14') ON DUPLICATE KEY UPDATE series = 5, number = 6, title = 'Decisive Battle on the Ice! Pikachu VS Viviyon!!', airdate = LEAST(airdate, '2013-11-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY006', 1, 801, 'Battling on Thin Ice!', '2014-02-22') ON DUPLICATE KEY UPDATE season = 1, number = 801, title = 'Battling on Thin Ice!', airdate = LEAST(airdate, '2014-02-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY007', 5, 7, 'Leave it to Serena!? The Charging Sihorn Race!', '2013-11-21') ON DUPLICATE KEY UPDATE series = 5, number = 7, title = 'Leave it to Serena!? The Charging Sihorn Race!', airdate = LEAST(airdate, '2013-11-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY007', 1, 802, 'Giving Chase at the Rhyhorn Race!', '2014-03-01') ON DUPLICATE KEY UPDATE season = 1, number = 802, title = 'Giving Chase at the Rhyhorn Race!', airdate = LEAST(airdate, '2014-03-01');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY008', 5, 8, 'Pokémon Trimmer and Trimmien!', '2013-11-28') ON DUPLICATE KEY UPDATE series = 5, number = 8, title = 'Pokémon Trimmer and Trimmien!', airdate = LEAST(airdate, '2013-11-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY008', 1, 803, 'Grooming Furfrou!', '2014-03-08') ON DUPLICATE KEY UPDATE season = 1, number = 803, title = 'Grooming Furfrou!', airdate = LEAST(airdate, '2014-03-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY009', 5, 9, 'Subdue Miare Gym! Citron\'s Secret!!', '2013-12-05') ON DUPLICATE KEY UPDATE series = 5, number = 9, title = 'Subdue Miare Gym! Citron\'s Secret!!', airdate = LEAST(airdate, '2013-12-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY009', 1, 804, 'Clemont\'s Got a Secret!', '2014-03-15') ON DUPLICATE KEY UPDATE season = 1, number = 804, title = 'Clemont\'s Got a Secret!', airdate = LEAST(airdate, '2014-03-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY010', 5, 10, 'Harimaron VS Mega Mega Nyarth!!', '2013-12-12') ON DUPLICATE KEY UPDATE series = 5, number = 10, title = 'Harimaron VS Mega Mega Nyarth!!', airdate = LEAST(airdate, '2013-12-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY010', 1, 805, 'Mega-Mega Meowth Madness!', '2014-03-22') ON DUPLICATE KEY UPDATE season = 1, number = 805, title = 'Mega-Mega Meowth Madness!', airdate = LEAST(airdate, '2014-03-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY011', 5, 11, 'Pursuit in the Bamboo Forest! Yancham and Goronda!!', '2013-12-19') ON DUPLICATE KEY UPDATE series = 5, number = 11, title = 'Pursuit in the Bamboo Forest! Yancham and Goronda!!', airdate = LEAST(airdate, '2013-12-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY011', 1, 806, 'The Bamboozling Forest!', '2014-03-29') ON DUPLICATE KEY UPDATE season = 1, number = 806, title = 'The Bamboozling Forest!', airdate = LEAST(airdate, '2014-03-29');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY012', 5, 12, 'Capture the Pokémon Buyer! The Kofuurai Impersonation Plan!!', '2014-01-09') ON DUPLICATE KEY UPDATE series = 5, number = 12, title = 'Capture the Pokémon Buyer! The Kofuurai Impersonation Plan!!', airdate = LEAST(airdate, '2014-01-09');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY012', 1, 807, 'To Catch a Pokémon Smuggler!', '2014-04-05') ON DUPLICATE KEY UPDATE season = 1, number = 807, title = 'To Catch a Pokémon Smuggler!', airdate = LEAST(airdate, '2014-04-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY013', 5, 13, 'Nymphia VS Keromatsu! Big Commotion in the Kindergarten!!', '2014-01-16') ON DUPLICATE KEY UPDATE series = 5, number = 13, title = 'Nymphia VS Keromatsu! Big Commotion in the Kindergarten!!', airdate = LEAST(airdate, '2014-01-16');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY013', 1, 808, 'Kindergarten Chaos!', '2014-04-12') ON DUPLICATE KEY UPDATE season = 1, number = 808, title = 'Kindergarten Chaos!', airdate = LEAST(airdate, '2014-04-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY014', 5, 14, 'The Mysterious Rain Shelter! Nyasper is Watching!!', '2014-01-30') ON DUPLICATE KEY UPDATE series = 5, number = 14, title = 'The Mysterious Rain Shelter! Nyasper is Watching!!', airdate = LEAST(airdate, '2014-01-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY014', 1, 809, 'Seeking Shelter from the Storm!', '2014-04-19') ON DUPLICATE KEY UPDATE season = 1, number = 809, title = 'Seeking Shelter from the Storm!', airdate = LEAST(airdate, '2014-04-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY015', 5, 15, 'Harimaron VS Mafoxy! A Diet Battle!?', '2014-02-06') ON DUPLICATE KEY UPDATE series = 5, number = 15, title = 'Harimaron VS Mafoxy! A Diet Battle!?', airdate = LEAST(airdate, '2014-02-06');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY015', 1, 810, 'An Appetite for Battle!', '2014-04-26') ON DUPLICATE KEY UPDATE season = 1, number = 810, title = 'An Appetite for Battle!', airdate = LEAST(airdate, '2014-04-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY016', 5, 16, 'Dedenne is Pichu, Pichu is Dedenne...!?', '2014-02-13') ON DUPLICATE KEY UPDATE series = 5, number = 16, title = 'Dedenne is Pichu, Pichu is Dedenne...!?', airdate = LEAST(airdate, '2014-02-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY016', 1, 811, 'A Jolting Switcheroo!', '2014-05-03') ON DUPLICATE KEY UPDATE season = 1, number = 811, title = 'A Jolting Switcheroo!', airdate = LEAST(airdate, '2014-05-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY017', 5, 17, 'Keromatsu VS Gekogashira! Ninja Battle!!', '2014-02-20') ON DUPLICATE KEY UPDATE series = 5, number = 17, title = 'Keromatsu VS Gekogashira! Ninja Battle!!', airdate = LEAST(airdate, '2014-02-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY017', 1, 812, 'A Rush of Ninja Wisdom!', '2014-05-10') ON DUPLICATE KEY UPDATE season = 1, number = 812, title = 'A Rush of Ninja Wisdom!', airdate = LEAST(airdate, '2014-05-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY018', 5, 18, 'Wake Up Kabigon! Battle in Parfum Palace!', '2014-02-27') ON DUPLICATE KEY UPDATE series = 5, number = 18, title = 'Wake Up Kabigon! Battle in Parfum Palace!', airdate = LEAST(airdate, '2014-02-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY018', 1, 813, 'Awakening the Sleeping Giant!', '2014-05-17') ON DUPLICATE KEY UPDATE season = 1, number = 813, title = 'Awakening the Sleeping Giant!', airdate = LEAST(airdate, '2014-05-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY019', 5, 19, 'Madame X\'s Plot! The Scary Calamanero!!', '2014-03-13') ON DUPLICATE KEY UPDATE series = 5, number = 19, title = 'Madame X\'s Plot! The Scary Calamanero!!', airdate = LEAST(airdate, '2014-03-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY019', 1, 814, 'A Conspiracy to Conquer!', '2014-05-24') ON DUPLICATE KEY UPDATE season = 1, number = 814, title = 'A Conspiracy to Conquer!', airdate = LEAST(airdate, '2014-05-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY020', 5, 20, 'Battle Chateau Challenge! Viola VS Zakuro!!', '2014-03-20') ON DUPLICATE KEY UPDATE series = 5, number = 20, title = 'Battle Chateau Challenge! Viola VS Zakuro!!', airdate = LEAST(airdate, '2014-03-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY020', 1, 815, 'Breaking Titles at the Chateau!', '2014-06-07') ON DUPLICATE KEY UPDATE season = 1, number = 815, title = 'Breaking Titles at the Chateau!', airdate = LEAST(airdate, '2014-06-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY021', 5, 21, 'Debut! Serena and Fokko on Poké Vision!!', '2014-03-27') ON DUPLICATE KEY UPDATE series = 5, number = 21, title = 'Debut! Serena and Fokko on Poké Vision!!', airdate = LEAST(airdate, '2014-03-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY021', 1, 816, 'A PokéVision of Things to Come!', '2014-06-14') ON DUPLICATE KEY UPDATE season = 1, number = 816, title = 'A PokéVision of Things to Come!', airdate = LEAST(airdate, '2014-06-14');
INSERT INTO episodes (code, title, airdate) VALUES ('SS028', 'Iris VS Ibuki! The Road to Become a Dragon Master!!', '2014-03-27') ON DUPLICATE KEY UPDATE title = 'Iris VS Ibuki! The Road to Become a Dragon Master!!', airdate = LEAST(airdate, '2014-03-27');
INSERT INTO episodes (code, title, airdate) VALUES ('SS029', 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act I~', '2014-04-03') ON DUPLICATE KEY UPDATE title = 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act I~', airdate = LEAST(airdate, '2014-04-03');
INSERT INTO dubs (code, title, airdate) VALUES ('SS029', 'Mega Evolution Special I', '2014-05-31') ON DUPLICATE KEY UPDATE title = 'Mega Evolution Special I', airdate = LEAST(airdate, '2014-05-31');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY022', 5, 22, 'Fish up the Golden Koiking!!', '2014-04-10') ON DUPLICATE KEY UPDATE series = 5, number = 22, title = 'Fish up the Golden Koiking!!', airdate = LEAST(airdate, '2014-04-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY022', 1, 817, 'Going for the Gold!', '2014-06-21') ON DUPLICATE KEY UPDATE season = 1, number = 817, title = 'Going for the Gold!', airdate = LEAST(airdate, '2014-06-21');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY023', 5, 23, 'The Bond of the Aurora! Amarus and Amaruruga!!', '2014-04-17') ON DUPLICATE KEY UPDATE series = 5, number = 23, title = 'The Bond of the Aurora! Amarus and Amaruruga!!', airdate = LEAST(airdate, '2014-04-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY023', 1, 818, 'Coming Back into the Cold!', '2014-06-28') ON DUPLICATE KEY UPDATE season = 1, number = 818, title = 'Coming Back into the Cold!', airdate = LEAST(airdate, '2014-06-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY024', 5, 24, 'The Undersea Castle! Kuzumo and Dramidoro!!', '2014-11-20') ON DUPLICATE KEY UPDATE series = 5, number = 24, title = 'The Undersea Castle! Kuzumo and Dramidoro!!', airdate = LEAST(airdate, '2014-11-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY024', 1, 819, 'An Undersea Place to Call Home!', '2015-02-07') ON DUPLICATE KEY UPDATE season = 1, number = 819, title = 'An Undersea Place to Call Home!', airdate = LEAST(airdate, '2015-02-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY025', 5, 25, 'Shōyō Gym Battle! Pikachu VS Chigoras!!', '2014-04-24') ON DUPLICATE KEY UPDATE series = 5, number = 25, title = 'Shōyō Gym Battle! Pikachu VS Chigoras!!', airdate = LEAST(airdate, '2014-04-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY025', 1, 820, 'Climbing the Walls!', '2014-07-05') ON DUPLICATE KEY UPDATE season = 1, number = 820, title = 'Climbing the Walls!', airdate = LEAST(airdate, '2014-07-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY026', 5, 26, 'Peroppafu and Peroream!! The Sweet Battle isn\'t a Piece of Cake!?', '2014-05-08') ON DUPLICATE KEY UPDATE series = 5, number = 26, title = 'Peroppafu and Peroream!! The Sweet Battle isn\'t a Piece of Cake!?', airdate = LEAST(airdate, '2014-05-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY026', 1, 821, 'A Battle by Any Other Name!', '2014-07-12') ON DUPLICATE KEY UPDATE season = 1, number = 821, title = 'A Battle by Any Other Name!', airdate = LEAST(airdate, '2014-07-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY027', 5, 27, 'Flabebe and the Fairy Flower!', '2014-05-15') ON DUPLICATE KEY UPDATE series = 5, number = 27, title = 'Flabebe and the Fairy Flower!', airdate = LEAST(airdate, '2014-05-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY027', 1, 822, 'To Find a Fairy Flower!', '2014-07-19') ON DUPLICATE KEY UPDATE season = 1, number = 822, title = 'To Find a Fairy Flower!', airdate = LEAST(airdate, '2014-07-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY028', 5, 28, 'Champion Carnet Appears! Mega Sirnight in the Mist!!', '2014-05-22') ON DUPLICATE KEY UPDATE series = 5, number = 28, title = 'Champion Carnet Appears! Mega Sirnight in the Mist!!', airdate = LEAST(airdate, '2014-05-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY028', 1, 823, 'The Bonds of Evolution!', '2014-07-26') ON DUPLICATE KEY UPDATE season = 1, number = 823, title = 'The Bonds of Evolution!', airdate = LEAST(airdate, '2014-07-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY029', 5, 29, 'Ta-da! Fake Satoshi Appears!!', '2014-05-29') ON DUPLICATE KEY UPDATE series = 5, number = 29, title = 'Ta-da! Fake Satoshi Appears!!', airdate = LEAST(airdate, '2014-05-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY029', 1, 824, 'Heroes - Friends and Faux Alike!', '2014-08-02') ON DUPLICATE KEY UPDATE season = 1, number = 824, title = 'Heroes - Friends and Faux Alike!', airdate = LEAST(airdate, '2014-08-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY030', 5, 30, 'Corni and Lucario! The Secret of Mega Evolution!!', '2014-05-29') ON DUPLICATE KEY UPDATE series = 5, number = 30, title = 'Corni and Lucario! The Secret of Mega Evolution!!', airdate = LEAST(airdate, '2014-05-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY030', 1, 825, 'Mega Revelations!', '2014-08-09') ON DUPLICATE KEY UPDATE season = 1, number = 825, title = 'Mega Revelations!', airdate = LEAST(airdate, '2014-08-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY031', 5, 31, 'Lucario VS Bursyamo! The Cave of Trials!!', '2014-06-05') ON DUPLICATE KEY UPDATE series = 5, number = 31, title = 'Lucario VS Bursyamo! The Cave of Trials!!', airdate = LEAST(airdate, '2014-06-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY031', 1, 826, 'The Cave of Trials!', '2014-08-16') ON DUPLICATE KEY UPDATE season = 1, number = 826, title = 'The Cave of Trials!', airdate = LEAST(airdate, '2014-08-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY032', 5, 32, 'Mega Lucario VS Mega Lucario! The Wave-Guiding Storm!!', '2014-06-12') ON DUPLICATE KEY UPDATE series = 5, number = 32, title = 'Mega Lucario VS Mega Lucario! The Wave-Guiding Storm!!', airdate = LEAST(airdate, '2014-06-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY032', 1, 827, 'The Aura Storm!', '2014-08-23') ON DUPLICATE KEY UPDATE season = 1, number = 827, title = 'The Aura Storm!', airdate = LEAST(airdate, '2014-08-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY033', 5, 33, 'Hearts Calling to Each Other! To the Other Side of Wave-Guiding!!', '2014-06-19') ON DUPLICATE KEY UPDATE series = 5, number = 33, title = 'Hearts Calling to Each Other! To the Other Side of Wave-Guiding!!', airdate = LEAST(airdate, '2014-06-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY033', 1, 828, 'Calling from Beyond the Aura!', '2014-08-30') ON DUPLICATE KEY UPDATE season = 1, number = 828, title = 'Calling from Beyond the Aura!', airdate = LEAST(airdate, '2014-08-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY034', 5, 34, 'Mega Lucario VS Mega Kucheat! The Bonds of Mega Evolution!!', '2014-07-03') ON DUPLICATE KEY UPDATE series = 5, number = 34, title = 'Mega Lucario VS Mega Kucheat! The Bonds of Mega Evolution!!', airdate = LEAST(airdate, '2014-07-03');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY034', 1, 829, 'The Bonds of Mega Evolution!', '2014-09-06') ON DUPLICATE KEY UPDATE season = 1, number = 829, title = 'The Bonds of Mega Evolution!', airdate = LEAST(airdate, '2014-09-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY035', 5, 35, 'Champion of the Forest! Luchabull Appears!!', '2014-07-10') ON DUPLICATE KEY UPDATE series = 5, number = 35, title = 'Champion of the Forest! Luchabull Appears!!', airdate = LEAST(airdate, '2014-07-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY035', 1, 830, 'The Forest Champion!', '2014-09-13') ON DUPLICATE KEY UPDATE season = 1, number = 830, title = 'The Forest Champion!', airdate = LEAST(airdate, '2014-09-13');
INSERT INTO episodes (code, title, airdate) VALUES ('UN18', 'Celestial Debris', '2014-07-12') ON DUPLICATE KEY UPDATE title = 'Celestial Debris', airdate = LEAST(airdate, '2014-07-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY036', 5, 36, 'A Sky Battle!? Luchabull VS Fiarrow!!', '2014-07-24') ON DUPLICATE KEY UPDATE series = 5, number = 36, title = 'A Sky Battle!? Luchabull VS Fiarrow!!', airdate = LEAST(airdate, '2014-07-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY036', 1, 831, 'Battles in the Sky!', '2014-09-20') ON DUPLICATE KEY UPDATE season = 1, number = 831, title = 'Battles in the Sky!', airdate = LEAST(airdate, '2014-09-20');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY037', 5, 37, 'Reflection Cave! Mirror World Satoshi and Satoshi!?', '2014-07-31') ON DUPLICATE KEY UPDATE series = 5, number = 37, title = 'Reflection Cave! Mirror World Satoshi and Satoshi!?', airdate = LEAST(airdate, '2014-07-31');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY037', 1, 832, 'The Cave of Mirrors!', '2014-09-27') ON DUPLICATE KEY UPDATE season = 1, number = 832, title = 'The Cave of Mirrors!', airdate = LEAST(airdate, '2014-09-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY038', 5, 38, 'Ohrot of the Crawling Forest!', '2014-08-07') ON DUPLICATE KEY UPDATE series = 5, number = 38, title = 'Ohrot of the Crawling Forest!', airdate = LEAST(airdate, '2014-08-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY038', 1, 833, 'Forging Forest Friendships!', '2014-10-04') ON DUPLICATE KEY UPDATE season = 1, number = 833, title = 'Forging Forest Friendships!', airdate = LEAST(airdate, '2014-10-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY039', 5, 39, 'Pokémon Summer Camp! Enter the Rival Trio!!', '2014-08-14') ON DUPLICATE KEY UPDATE series = 5, number = 39, title = 'Pokémon Summer Camp! Enter the Rival Trio!!', airdate = LEAST(airdate, '2014-08-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY039', 1, 834, 'Summer of Discovery!', '2014-10-11') ON DUPLICATE KEY UPDATE season = 1, number = 834, title = 'Summer of Discovery!', airdate = LEAST(airdate, '2014-10-11');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY040', 5, 40, 'Serena VS Sana! Pokévision Showdown!!', '2014-08-21') ON DUPLICATE KEY UPDATE series = 5, number = 40, title = 'Serena VS Sana! Pokévision Showdown!!', airdate = LEAST(airdate, '2014-08-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY040', 1, 835, 'Day Three Blockbusters!', '2014-10-18') ON DUPLICATE KEY UPDATE season = 1, number = 835, title = 'Day Three Blockbusters!', airdate = LEAST(airdate, '2014-10-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY041', 5, 41, 'PokéEnteering! The X in the Mist!', '2014-08-28') ON DUPLICATE KEY UPDATE series = 5, number = 41, title = 'PokéEnteering! The X in the Mist!', airdate = LEAST(airdate, '2014-08-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY041', 1, 836, 'Foggy Pokémon Orienteering!', '2014-10-25') ON DUPLICATE KEY UPDATE season = 1, number = 836, title = 'Foggy Pokémon Orienteering!', airdate = LEAST(airdate, '2014-10-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY042', 5, 42, 'Team Battle! Competing for the Hall of Fame!!', '2014-09-04') ON DUPLICATE KEY UPDATE series = 5, number = 42, title = 'Team Battle! Competing for the Hall of Fame!!', airdate = LEAST(airdate, '2014-09-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY042', 1, 837, 'Battling into the Hall of Fame!', '2014-11-01') ON DUPLICATE KEY UPDATE season = 1, number = 837, title = 'Battling into the Hall of Fame!', airdate = LEAST(airdate, '2014-11-01');
INSERT INTO episodes (code, title, airdate) VALUES ('SS030', 'Diancie, Princess of the Ore Country', '2014-07-17') ON DUPLICATE KEY UPDATE title = 'Diancie, Princess of the Ore Country', airdate = LEAST(airdate, '2014-07-17');
INSERT INTO dubs (code, title, airdate) VALUES ('SS030', 'Diancie — Princess of the Diamond Domain', '2014-11-06') ON DUPLICATE KEY UPDATE title = 'Diancie — Princess of the Diamond Domain', airdate = LEAST(airdate, '2014-11-06');
INSERT INTO episodes (code, title, airdate) VALUES ('PK26', 'Pikachu, What\'s This Key For?', '2014-07-19') ON DUPLICATE KEY UPDATE title = 'Pikachu, What\'s This Key For?', airdate = LEAST(airdate, '2014-07-19');
INSERT INTO dubs (code, title, airdate) VALUES ('PK26', 'Pikachu, What\'s This Key?', '2015-02-02') ON DUPLICATE KEY UPDATE title = 'Pikachu, What\'s This Key?', airdate = LEAST(airdate, '2015-02-02');
INSERT INTO episodes (code, title, airdate) VALUES ('M17', 'The Cocoon of Destruction and Diancie', '2014-07-19') ON DUPLICATE KEY UPDATE title = 'The Cocoon of Destruction and Diancie', airdate = LEAST(airdate, '2014-07-19');
INSERT INTO dubs (code, title, airdate) VALUES ('M17', 'Pokémon the Movie: Diancie and the Cocoon of Destruction', '2014-11-08') ON DUPLICATE KEY UPDATE title = 'Pokémon the Movie: Diancie and the Cocoon of Destruction', airdate = LEAST(airdate, '2014-11-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY043', 5, 43, 'Master Tower! The History of Mega Evolution!!', '2014-09-18') ON DUPLICATE KEY UPDATE series = 5, number = 43, title = 'Master Tower! The History of Mega Evolution!!', airdate = LEAST(airdate, '2014-09-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY043', 1, 838, 'Origins of Mega Evolution!', '2014-11-08') ON DUPLICATE KEY UPDATE season = 1, number = 838, title = 'Origins of Mega Evolution!', airdate = LEAST(airdate, '2014-11-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY044', 5, 44, 'Shara Gym Match! Pikachu VS Mega Lucario!!', '2014-09-25') ON DUPLICATE KEY UPDATE series = 5, number = 44, title = 'Shara Gym Match! Pikachu VS Mega Lucario!!', airdate = LEAST(airdate, '2014-09-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY044', 1, 839, 'Showdown at the Shalour Gym!', '2014-11-15') ON DUPLICATE KEY UPDATE season = 1, number = 839, title = 'Showdown at the Shalour Gym!', airdate = LEAST(airdate, '2014-11-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY045', 5, 45, 'Citron VS Eureka!? A Sibling Battle for Nyaonix!!', '2014-10-02') ON DUPLICATE KEY UPDATE series = 5, number = 45, title = 'Citron VS Eureka!? A Sibling Battle for Nyaonix!!', airdate = LEAST(airdate, '2014-10-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY045', 1, 840, 'Splitting Heirs!', '2014-11-22') ON DUPLICATE KEY UPDATE season = 1, number = 840, title = 'Splitting Heirs!', airdate = LEAST(airdate, '2014-11-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY046', 5, 46, 'The Clumsy Pukurin VS the Rampaging Bohmander!!', '2014-10-09') ON DUPLICATE KEY UPDATE series = 5, number = 46, title = 'The Clumsy Pukurin VS the Rampaging Bohmander!!', airdate = LEAST(airdate, '2014-10-09');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY046', 1, 841, 'The Clumsy Crier Quiets the Chaos!', '2014-11-29') ON DUPLICATE KEY UPDATE season = 1, number = 841, title = 'The Clumsy Crier Quiets the Chaos!', airdate = LEAST(airdate, '2014-11-29');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY047', 5, 47, 'Serena\'s First Capture!? Yancham VS Fokko!!', '2014-10-16') ON DUPLICATE KEY UPDATE series = 5, number = 47, title = 'Serena\'s First Capture!? Yancham VS Fokko!!', airdate = LEAST(airdate, '2014-10-16');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY047', 1, 842, 'Dreaming a Performer\'s Dream!', '2014-12-06') ON DUPLICATE KEY UPDATE season = 1, number = 842, title = 'Dreaming a Performer\'s Dream!', airdate = LEAST(airdate, '2014-12-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY048', 5, 48, 'Citron\'s Campus of Memories! An Electrifying Reunion!!', '2014-10-23') ON DUPLICATE KEY UPDATE series = 5, number = 48, title = 'Citron\'s Campus of Memories! An Electrifying Reunion!!', airdate = LEAST(airdate, '2014-10-23');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY048', 1, 843, 'A Campus Reunion!', '2014-12-13') ON DUPLICATE KEY UPDATE season = 1, number = 843, title = 'A Campus Reunion!', airdate = LEAST(airdate, '2014-12-13');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY049', 5, 49, 'Dispatch the Laplace Protection Team! Do Your Best, Eureka!!', '2014-10-30') ON DUPLICATE KEY UPDATE series = 5, number = 49, title = 'Dispatch the Laplace Protection Team! Do Your Best, Eureka!!', airdate = LEAST(airdate, '2014-10-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY049', 1, 844, 'Bonnie for the Defense!', '2014-12-20') ON DUPLICATE KEY UPDATE season = 1, number = 844, title = 'Bonnie for the Defense!', airdate = LEAST(airdate, '2014-12-20');
INSERT INTO episodes (code, title, airdate) VALUES ('SS031', 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act II~', '2014-11-06') ON DUPLICATE KEY UPDATE title = 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act II~', airdate = LEAST(airdate, '2014-11-06');
INSERT INTO dubs (code, title, airdate) VALUES ('SS031', 'Mega Evolution Special II', '2015-02-07') ON DUPLICATE KEY UPDATE title = 'Mega Evolution Special II', airdate = LEAST(airdate, '2015-02-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY050', 5, 50, 'Dance, Yancham — Captivate, Fokko! The Dance for Tomorrow!!', '2014-11-13') ON DUPLICATE KEY UPDATE series = 5, number = 50, title = 'Dance, Yancham — Captivate, Fokko! The Dance for Tomorrow!!', airdate = LEAST(airdate, '2014-11-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY050', 1, 845, 'Pathways to Performance Partnering!', '2015-02-07') ON DUPLICATE KEY UPDATE season = 1, number = 845, title = 'Pathways to Performance Partnering!', airdate = LEAST(airdate, '2015-02-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY051', 5, 51, 'Luchabull and Dark Luchabull!', '2014-11-27') ON DUPLICATE KEY UPDATE series = 5, number = 51, title = 'Luchabull and Dark Luchabull!', airdate = LEAST(airdate, '2014-11-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY051', 1, 846, 'When Light and Dark Collide!', '2015-02-07') ON DUPLICATE KEY UPDATE season = 1, number = 846, title = 'When Light and Dark Collide!', airdate = LEAST(airdate, '2015-02-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY052', 5, 52, 'Ninja Arts Showdown! Gekogashira VS Gamenodes!!', '2014-12-11') ON DUPLICATE KEY UPDATE series = 5, number = 52, title = 'Ninja Arts Showdown! Gekogashira VS Gamenodes!!', airdate = LEAST(airdate, '2014-12-11');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY052', 1, 847, 'A Stealthy Challenge!', '2015-02-28') ON DUPLICATE KEY UPDATE season = 1, number = 847, title = 'A Stealthy Challenge!', airdate = LEAST(airdate, '2015-02-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY053', 5, 53, 'Serena\'s Earnest! The Wild Meecle Race!!', '2014-12-18') ON DUPLICATE KEY UPDATE series = 5, number = 53, title = 'Serena\'s Earnest! The Wild Meecle Race!!', airdate = LEAST(airdate, '2014-12-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY053', 1, 848, 'A Race for Home!', '2015-03-07') ON DUPLICATE KEY UPDATE season = 1, number = 848, title = 'A Race for Home!', airdate = LEAST(airdate, '2015-03-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY054', 5, 54, 'Calamanero VS Maaiika! The Bonds that Would Save the World!!', '2014-12-25') ON DUPLICATE KEY UPDATE series = 5, number = 54, title = 'Calamanero VS Maaiika! The Bonds that Would Save the World!!', airdate = LEAST(airdate, '2014-12-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY054', 1, 849, 'Facing the Grand Design!', '2015-03-14') ON DUPLICATE KEY UPDATE season = 1, number = 849, title = 'Facing the Grand Design!', airdate = LEAST(airdate, '2015-03-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY055', 5, 55, 'The Weakest Dragon!? Numera Appears!!', '2015-01-08') ON DUPLICATE KEY UPDATE series = 5, number = 55, title = 'The Weakest Dragon!? Numera Appears!!', airdate = LEAST(airdate, '2015-01-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY055', 1, 850, 'A Slippery Encounter!', '2015-03-21') ON DUPLICATE KEY UPDATE season = 1, number = 850, title = 'A Slippery Encounter!', airdate = LEAST(airdate, '2015-03-21');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY056', 5, 56, 'Do Your Best, Dedenne! Do it for Numera!!', '2015-01-15') ON DUPLICATE KEY UPDATE series = 5, number = 56, title = 'Do Your Best, Dedenne! Do it for Numera!!', airdate = LEAST(airdate, '2015-01-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY056', 1, 851, 'One for the Goomy!', '2015-03-28') ON DUPLICATE KEY UPDATE season = 1, number = 851, title = 'One for the Goomy!', airdate = LEAST(airdate, '2015-03-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY057', 5, 57, 'Vanipeti Panic! An Ice-Covered Whiteout!!', '2015-01-22') ON DUPLICATE KEY UPDATE series = 5, number = 57, title = 'Vanipeti Panic! An Ice-Covered Whiteout!!', airdate = LEAST(airdate, '2015-01-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY057', 1, 852, 'Thawing an Icy Panic!', '2015-04-04') ON DUPLICATE KEY UPDATE season = 1, number = 852, title = 'Thawing an Icy Panic!', airdate = LEAST(airdate, '2015-04-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY058', 5, 58, 'Hiyoku Gym Battle! Gekogashira VS Gogoat!!', '2015-01-29') ON DUPLICATE KEY UPDATE series = 5, number = 58, title = 'Hiyoku Gym Battle! Gekogashira VS Gogoat!!', airdate = LEAST(airdate, '2015-01-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY058', 1, 853, 'The Green, Green Grass Types of Home!', '2015-04-11') ON DUPLICATE KEY UPDATE season = 1, number = 853, title = 'The Green, Green Grass Types of Home!', airdate = LEAST(airdate, '2015-04-11');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY059', 5, 59, 'Satoshi and Serena\'s First Date!? The Tree of Promises and the Presents!!', '2015-02-05') ON DUPLICATE KEY UPDATE series = 5, number = 59, title = 'Satoshi and Serena\'s First Date!? The Tree of Promises and the Presents!!', airdate = LEAST(airdate, '2015-02-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY059', 1, 854, 'Under the Pledging Tree!', '2015-04-18') ON DUPLICATE KEY UPDATE season = 1, number = 854, title = 'Under the Pledging Tree!', airdate = LEAST(airdate, '2015-04-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY060', 5, 60, 'Aim to be the Kalos Queen! Serena Makes Her Debut!!', '2015-02-12') ON DUPLICATE KEY UPDATE series = 5, number = 60, title = 'Aim to be the Kalos Queen! Serena Makes Her Debut!!', airdate = LEAST(airdate, '2015-02-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY060', 1, 855, 'A Showcase Debut!', '2015-04-25') ON DUPLICATE KEY UPDATE season = 1, number = 855, title = 'A Showcase Debut!', airdate = LEAST(airdate, '2015-04-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY061', 5, 61, 'Decisive Battle in the Badlands! Fight, Numera!!', '2015-02-19') ON DUPLICATE KEY UPDATE series = 5, number = 61, title = 'Decisive Battle in the Badlands! Fight, Numera!!', airdate = LEAST(airdate, '2015-02-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY061', 1, 856, 'An Oasis of Hope!', '2015-05-02') ON DUPLICATE KEY UPDATE season = 1, number = 856, title = 'An Oasis of Hope!', airdate = LEAST(airdate, '2015-05-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY062', 5, 62, 'Protect the Future of Science! The Electric Labyrinth!!', '2015-02-26') ON DUPLICATE KEY UPDATE series = 5, number = 62, title = 'Protect the Future of Science! The Electric Labyrinth!!', airdate = LEAST(airdate, '2015-02-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY062', 1, 857, 'The Future Is Now, Thanks to Determination!', '2015-05-09') ON DUPLICATE KEY UPDATE season = 1, number = 857, title = 'The Future Is Now, Thanks to Determination!', airdate = LEAST(airdate, '2015-05-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY063', 5, 63, 'A Fork in the Path of Indecision!? Musashi and Sonans!!', '2015-03-05') ON DUPLICATE KEY UPDATE series = 5, number = 63, title = 'A Fork in the Path of Indecision!? Musashi and Sonans!!', airdate = LEAST(airdate, '2015-03-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY063', 1, 858, 'A Fork in the Road! A Parting of the Ways!', '2015-05-16') ON DUPLICATE KEY UPDATE season = 1, number = 858, title = 'A Fork in the Road! A Parting of the Ways!', airdate = LEAST(airdate, '2015-05-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY064', 5, 64, 'Fokko VS Mahoxy! A Splendid Performance Battle!!', '2015-03-12') ON DUPLICATE KEY UPDATE series = 5, number = 64, title = 'Fokko VS Mahoxy! A Splendid Performance Battle!!', airdate = LEAST(airdate, '2015-03-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY064', 1, 859, 'Battling with Elegance and a Big Smile!', '2015-05-23') ON DUPLICATE KEY UPDATE season = 1, number = 859, title = 'Battling with Elegance and a Big Smile!', airdate = LEAST(airdate, '2015-05-23');
INSERT INTO episodes (code, title, airdate) VALUES ('SS032', 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act III~', '2015-03-19') ON DUPLICATE KEY UPDATE title = 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act III~', airdate = LEAST(airdate, '2015-03-19');
INSERT INTO dubs (code, title, airdate) VALUES ('SS032', 'Mega Evolution Special III', '2015-08-15') ON DUPLICATE KEY UPDATE title = 'Mega Evolution Special III', airdate = LEAST(airdate, '2015-08-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY065', 5, 65, 'Kameil and Raichu Appear! Good Luck Numeil!!', '2015-03-26') ON DUPLICATE KEY UPDATE series = 5, number = 65, title = 'Kameil and Raichu Appear! Good Luck Numeil!!', airdate = LEAST(airdate, '2015-03-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY065', 1, 860, 'Good Friends, Great Training!', '2015-05-30') ON DUPLICATE KEY UPDATE season = 1, number = 860, title = 'Good Friends, Great Training!', airdate = LEAST(airdate, '2015-05-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY066', 5, 66, 'The Miare City Investigation! Citroid VS Black Citroid!!', '2015-04-02') ON DUPLICATE KEY UPDATE series = 5, number = 66, title = 'The Miare City Investigation! Citroid VS Black Citroid!!', airdate = LEAST(airdate, '2015-04-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY066', 1, 861, 'Confronting the Darkness!', '2015-06-06') ON DUPLICATE KEY UPDATE season = 1, number = 861, title = 'Confronting the Darkness!', airdate = LEAST(airdate, '2015-06-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY067', 5, 67, 'Miare Gym Battle! Satoshi VS Citron!!', '2015-04-09') ON DUPLICATE KEY UPDATE series = 5, number = 67, title = 'Miare Gym Battle! Satoshi VS Citron!!', airdate = LEAST(airdate, '2015-04-09');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY067', 1, 862, 'The Moment of Lumiose Truth!', '2015-06-13') ON DUPLICATE KEY UPDATE season = 1, number = 862, title = 'The Moment of Lumiose Truth!', airdate = LEAST(airdate, '2015-06-13');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY068', 5, 68, 'The Coveted Mega Evolution! Gaburias\'s Bonds!!', '2015-04-16') ON DUPLICATE KEY UPDATE series = 5, number = 68, title = 'The Coveted Mega Evolution! Gaburias\'s Bonds!!', airdate = LEAST(airdate, '2015-04-16');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY068', 1, 863, 'Garchomp\'s Mega Bond!', '2015-06-20') ON DUPLICATE KEY UPDATE season = 1, number = 863, title = 'Garchomp\'s Mega Bond!', airdate = LEAST(airdate, '2015-06-20');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY069', 5, 69, 'Battle in the Wetlands! Numelgon VS Florges!!', '2015-04-23') ON DUPLICATE KEY UPDATE series = 5, number = 69, title = 'Battle in the Wetlands! Numelgon VS Florges!!', airdate = LEAST(airdate, '2015-04-23');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY069', 1, 864, 'Defending the Homeland!', '2015-06-27') ON DUPLICATE KEY UPDATE season = 1, number = 864, title = 'Defending the Homeland!', airdate = LEAST(airdate, '2015-06-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY070', 5, 70, 'Conclusion! Numelgon, Somewhere Over the Rainbow!!', '2015-04-30') ON DUPLICATE KEY UPDATE series = 5, number = 70, title = 'Conclusion! Numelgon, Somewhere Over the Rainbow!!', airdate = LEAST(airdate, '2015-04-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY070', 1, 865, 'Beyond the Rainbow!', '2015-07-04') ON DUPLICATE KEY UPDATE season = 1, number = 865, title = 'Beyond the Rainbow!', airdate = LEAST(airdate, '2015-07-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY071', 5, 71, 'The Worst Luck? Eureka VS Nyarth!!', '2015-05-07') ON DUPLICATE KEY UPDATE series = 5, number = 71, title = 'The Worst Luck? Eureka VS Nyarth!!', airdate = LEAST(airdate, '2015-05-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY071', 1, 866, 'So You\'re Having a Bad Day!', '2015-07-11') ON DUPLICATE KEY UPDATE season = 1, number = 866, title = 'So You\'re Having a Bad Day!', airdate = LEAST(airdate, '2015-07-11');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY072', 5, 72, 'The Scary House\'s Hospitality!', '2015-05-14') ON DUPLICATE KEY UPDATE series = 5, number = 72, title = 'The Scary House\'s Hospitality!', airdate = LEAST(airdate, '2015-05-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY072', 1, 867, 'Scary Hospitality!', '2015-07-18') ON DUPLICATE KEY UPDATE season = 1, number = 867, title = 'Scary Hospitality!', airdate = LEAST(airdate, '2015-07-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY073', 5, 73, 'Battle at the Fashion Show! Tatsubay VS Shushupu!!', '2015-05-21') ON DUPLICATE KEY UPDATE series = 5, number = 73, title = 'Battle at the Fashion Show! Tatsubay VS Shushupu!!', airdate = LEAST(airdate, '2015-05-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY073', 1, 868, 'A Fashionable Battle!', '2015-07-25') ON DUPLICATE KEY UPDATE season = 1, number = 868, title = 'A Fashionable Battle!', airdate = LEAST(airdate, '2015-07-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY074', 5, 74, 'Kunoe Gym Battle! The Beautiful Fairy Trap!!', '2015-05-28') ON DUPLICATE KEY UPDATE series = 5, number = 74, title = 'Kunoe Gym Battle! The Beautiful Fairy Trap!!', airdate = LEAST(airdate, '2015-05-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY074', 1, 869, 'Fairy-Type Trickery!', '2015-08-01') ON DUPLICATE KEY UPDATE season = 1, number = 869, title = 'Fairy-Type Trickery!', airdate = LEAST(airdate, '2015-08-01');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY075', 5, 75, 'Three-Match Rival Battle! Towards the Future!!', '2015-06-04') ON DUPLICATE KEY UPDATE series = 5, number = 75, title = 'Three-Match Rival Battle! Towards the Future!!', airdate = LEAST(airdate, '2015-06-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY075', 1, 870, 'Rivals: Today and Tomorrow!', '2015-08-08') ON DUPLICATE KEY UPDATE season = 1, number = 870, title = 'Rivals: Today and Tomorrow!', airdate = LEAST(airdate, '2015-08-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY076', 5, 76, 'The Wind, the Egg and Onbat!', '2015-06-11') ON DUPLICATE KEY UPDATE series = 5, number = 76, title = 'The Wind, the Egg and Onbat!', airdate = LEAST(airdate, '2015-06-11');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY076', 1, 871, 'A Not-So-Flying Start!', '2015-08-22') ON DUPLICATE KEY UPDATE season = 1, number = 871, title = 'A Not-So-Flying Start!', airdate = LEAST(airdate, '2015-08-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY077', 5, 77, 'The Pokémon Sky Relay Challenge! Fly, Onbat!!', '2015-06-18') ON DUPLICATE KEY UPDATE series = 5, number = 77, title = 'The Pokémon Sky Relay Challenge! Fly, Onbat!!', airdate = LEAST(airdate, '2015-06-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY077', 1, 872, 'A Relay in the Sky!', '2015-08-29') ON DUPLICATE KEY UPDATE season = 1, number = 872, title = 'A Relay in the Sky!', airdate = LEAST(airdate, '2015-08-29');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY078', 5, 78, 'Pikachu Becomes a Star!? It\'s Movie Debut!! / How to Pikachu The Movie! OK! Action!! / The Lightning-fast Hero! Super Pikachu!! / Pikachu\'s Shocking Bloopers', '2015-06-18') ON DUPLICATE KEY UPDATE series = 5, number = 78, title = 'Pikachu Becomes a Star!? It\'s Movie Debut!! / How to Pikachu The Movie! OK! Action!! / The Lightning-fast Hero! Super Pikachu!! / Pikachu\'s Shocking Bloopers', airdate = LEAST(airdate, '2015-06-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY078', 1, 873, 'Lights! Camera! Pika! / How to Make a Pikachu Movie: Ready...Action! / Lightning Fast! Brave and Strong! Super-Pikachu! / The Very Best of Super-Pikachu\'s Back-Slapping Bloopers!', '2015-11-21') ON DUPLICATE KEY UPDATE season = 1, number = 873, title = 'Lights! Camera! Pika! / How to Make a Pikachu Movie: Ready...Action! / Lightning Fast! Brave and Strong! Super-Pikachu! / The Very Best of Super-Pikachu\'s Back-Slapping Bloopers!', airdate = LEAST(airdate, '2015-11-21');
INSERT INTO episodes (code, title, airdate) VALUES ('SS034', 'The Minidjinni of the Word "Appear!": Hoopa', '2015-06-19') ON DUPLICATE KEY UPDATE title = 'The Minidjinni of the Word "Appear!": Hoopa', airdate = LEAST(airdate, '2015-06-19');
INSERT INTO dubs (code, title, airdate) VALUES ('SS034', 'Hoopa — The Mischief Pokémon', '2015-12-03') ON DUPLICATE KEY UPDATE title = 'Hoopa — The Mischief Pokémon', airdate = LEAST(airdate, '2015-12-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY079', 5, 79, 'Fierce Battle in the Monster Ball Factory! Pikachu VS Nyarth!!', '2015-06-25') ON DUPLICATE KEY UPDATE series = 5, number = 79, title = 'Fierce Battle in the Monster Ball Factory! Pikachu VS Nyarth!!', airdate = LEAST(airdate, '2015-06-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY079', 1, 874, 'A Frenzied Factory Fiasco!', '2015-09-05') ON DUPLICATE KEY UPDATE season = 1, number = 874, title = 'A Frenzied Factory Fiasco!', airdate = LEAST(airdate, '2015-09-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY080', 5, 80, 'Tairenar and Yancham!! A Captivating Fiery Performance!!', '2015-07-02') ON DUPLICATE KEY UPDATE series = 5, number = 80, title = 'Tairenar and Yancham!! A Captivating Fiery Performance!!', airdate = LEAST(airdate, '2015-07-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY080', 1, 875, 'Performing with Fiery Charm!', '2015-09-12') ON DUPLICATE KEY UPDATE season = 1, number = 875, title = 'Performing with Fiery Charm!', airdate = LEAST(airdate, '2015-09-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY081', 5, 81, 'Satoshi Leaps Through Time! Rotom\'s Wish!!', '2015-07-09') ON DUPLICATE KEY UPDATE series = 5, number = 81, title = 'Satoshi Leaps Through Time! Rotom\'s Wish!!', airdate = LEAST(airdate, '2015-07-09');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY081', 1, 876, 'Rotom\'s Wish!', '2015-09-19') ON DUPLICATE KEY UPDATE season = 1, number = 876, title = 'Rotom\'s Wish!', airdate = LEAST(airdate, '2015-09-19');
INSERT INTO episodes (code, title, airdate) VALUES ('PK27', 'Pikachu and the Pokémon Band', '2015-07-18') ON DUPLICATE KEY UPDATE title = 'Pikachu and the Pokémon Band', airdate = LEAST(airdate, '2015-07-18');
INSERT INTO dubs (code, title, airdate) VALUES ('PK27', 'Pikachu and the Pokémon Music Squad', '2015-12-21') ON DUPLICATE KEY UPDATE title = 'Pikachu and the Pokémon Music Squad', airdate = LEAST(airdate, '2015-12-21');
INSERT INTO episodes (code, title, airdate) VALUES ('M18', 'The Archdjinni of the Rings: Hoopa', '2015-07-18') ON DUPLICATE KEY UPDATE title = 'The Archdjinni of the Rings: Hoopa', airdate = LEAST(airdate, '2015-07-18');
INSERT INTO dubs (code, title, airdate) VALUES ('M18', 'Pokémon the Movie: Hoopa and the Clash of Ages', '2015-11-05') ON DUPLICATE KEY UPDATE title = 'Pokémon the Movie: Hoopa and the Clash of Ages', airdate = LEAST(airdate, '2015-11-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY082', 5, 82, 'The Pumpjin Festival! Farewell, Bakeccha!?', '2015-07-23') ON DUPLICATE KEY UPDATE series = 5, number = 82, title = 'The Pumpjin Festival! Farewell, Bakeccha!?', airdate = LEAST(airdate, '2015-07-23');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY082', 1, 877, 'A Festival Trade! A Festival Farewell?', '2015-09-26') ON DUPLICATE KEY UPDATE season = 1, number = 877, title = 'A Festival Trade! A Festival Farewell?', airdate = LEAST(airdate, '2015-09-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY083', 5, 83, 'Crossing the Snow Mountains! Mammoo and Yukinooh!!', '2015-07-30') ON DUPLICATE KEY UPDATE series = 5, number = 83, title = 'Crossing the Snow Mountains! Mammoo and Yukinooh!!', airdate = LEAST(airdate, '2015-07-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY083', 1, 878, 'Over the Mountain of Snow!', '2015-10-03') ON DUPLICATE KEY UPDATE season = 1, number = 878, title = 'Over the Mountain of Snow!', airdate = LEAST(airdate, '2015-10-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY084', 5, 84, 'Harimaron! Its First Errand!!', '2015-08-13') ON DUPLICATE KEY UPDATE series = 5, number = 84, title = 'Harimaron! Its First Errand!!', airdate = LEAST(airdate, '2015-08-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY084', 1, 879, 'Adventures in Running Errands!', '2015-10-10') ON DUPLICATE KEY UPDATE season = 1, number = 879, title = 'Adventures in Running Errands!', airdate = LEAST(airdate, '2015-10-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY085', 5, 85, 'A Broken Twig and a Broken Heart! Tairenar\'s Strong Feelings!!', '2015-08-20') ON DUPLICATE KEY UPDATE series = 5, number = 85, title = 'A Broken Twig and a Broken Heart! Tairenar\'s Strong Feelings!!', airdate = LEAST(airdate, '2015-08-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY085', 1, 880, 'Mending a Broken Spirit!', '2015-10-17') ON DUPLICATE KEY UPDATE season = 1, number = 880, title = 'Mending a Broken Spirit!', airdate = LEAST(airdate, '2015-10-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY086', 5, 86, 'Photo Op on Fire! Snap the Legend!!', '2015-08-27') ON DUPLICATE KEY UPDATE series = 5, number = 86, title = 'Photo Op on Fire! Snap the Legend!!', airdate = LEAST(airdate, '2015-08-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY086', 1, 881, 'A Legendary Photo Op!', '2015-10-24') ON DUPLICATE KEY UPDATE season = 1, number = 881, title = 'A Legendary Photo Op!', airdate = LEAST(airdate, '2015-10-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY087', 5, 87, 'Eureka the Caretaker! The Spoiled Chigoras!!', '2015-09-10') ON DUPLICATE KEY UPDATE series = 5, number = 87, title = 'Eureka the Caretaker! The Spoiled Chigoras!!', airdate = LEAST(airdate, '2015-09-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY087', 1, 882, 'The Tiny Caretaker!', '2015-10-31') ON DUPLICATE KEY UPDATE season = 1, number = 882, title = 'The Tiny Caretaker!', airdate = LEAST(airdate, '2015-10-31');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY088', 5, 88, 'Memories of the Train! Citron and Horubee!!', '2015-09-17') ON DUPLICATE KEY UPDATE series = 5, number = 88, title = 'Memories of the Train! Citron and Horubee!!', airdate = LEAST(airdate, '2015-09-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY088', 1, 883, 'A Trip Down Memory Train!', '2015-11-07') ON DUPLICATE KEY UPDATE season = 1, number = 883, title = 'A Trip Down Memory Train!', airdate = LEAST(airdate, '2015-11-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY089', 5, 89, 'The Eievui Who is Shy of Strangers!? Capture at the Flower Garden!!', '2015-09-24') ON DUPLICATE KEY UPDATE series = 5, number = 89, title = 'The Eievui Who is Shy of Strangers!? Capture at the Flower Garden!!', airdate = LEAST(airdate, '2015-09-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY089', 1, 884, 'A Frolicking Find in the Flowers!', '2015-11-14') ON DUPLICATE KEY UPDATE season = 1, number = 884, title = 'A Frolicking Find in the Flowers!', airdate = LEAST(airdate, '2015-11-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY090', 5, 90, 'A Tag Battle is a Friendship Battle! Eievui\'s First Time in a Fight!!', '2015-10-01') ON DUPLICATE KEY UPDATE series = 5, number = 90, title = 'A Tag Battle is a Friendship Battle! Eievui\'s First Time in a Fight!!', airdate = LEAST(airdate, '2015-10-01');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY090', 1, 885, 'Tag Team Battle Inspiration!', '2015-11-28') ON DUPLICATE KEY UPDATE season = 1, number = 885, title = 'Tag Team Battle Inspiration!', airdate = LEAST(airdate, '2015-11-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY091', 5, 91, 'The Happy Dance Comes After the Quiz!? The Hyakkoku TryPokaron Tournament!!', '2015-10-08') ON DUPLICATE KEY UPDATE series = 5, number = 91, title = 'The Happy Dance Comes After the Quiz!? The Hyakkoku TryPokaron Tournament!!', airdate = LEAST(airdate, '2015-10-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY091', 1, 886, 'A Performance Pop Quiz!', '2015-12-05') ON DUPLICATE KEY UPDATE season = 1, number = 886, title = 'A Performance Pop Quiz!', airdate = LEAST(airdate, '2015-12-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY092', 5, 92, 'The Crisis in Kalos! The Battle of the Giant Sundial!!', '2015-10-15') ON DUPLICATE KEY UPDATE series = 5, number = 92, title = 'The Crisis in Kalos! The Battle of the Giant Sundial!!', airdate = LEAST(airdate, '2015-10-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY092', 1, 887, 'Cloudy Fate, Bright Future!', '2015-12-12') ON DUPLICATE KEY UPDATE season = 1, number = 887, title = 'Cloudy Fate, Bright Future!', airdate = LEAST(airdate, '2015-12-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY093', 5, 93, 'The Double Battle in the Hyakkoku Gym! Gojika\'s Future Sight!', '2015-10-22') ON DUPLICATE KEY UPDATE series = 5, number = 93, title = 'The Double Battle in the Hyakkoku Gym! Gojika\'s Future Sight!', airdate = LEAST(airdate, '2015-10-22');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY093', 1, 888, 'All Eyes on the Future!', '2015-12-19') ON DUPLICATE KEY UPDATE season = 1, number = 888, title = 'All Eyes on the Future!', airdate = LEAST(airdate, '2015-12-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY094', 5, 94, 'Z\'s Explosive Birth! What Lurks in Kalos!!', '2015-10-29') ON DUPLICATE KEY UPDATE series = 5, number = 94, title = 'Z\'s Explosive Birth! What Lurks in Kalos!!', airdate = LEAST(airdate, '2015-10-29');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY094', 1, 889, 'From A to Z!', '2016-02-20') ON DUPLICATE KEY UPDATE season = 1, number = 889, title = 'From A to Z!', airdate = LEAST(airdate, '2016-02-20');
INSERT INTO episodes (code, title, airdate) VALUES ('SS035', 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act IV~', '2015-10-29') ON DUPLICATE KEY UPDATE title = 'Pocket Monsters XY Special Episode: The Strongest Mega Evolution ~Act IV~', airdate = LEAST(airdate, '2015-10-29');
INSERT INTO dubs (code, title, airdate) VALUES ('SS035', 'Mega Evolution Special IV', '2015-12-26') ON DUPLICATE KEY UPDATE title = 'Mega Evolution Special IV', airdate = LEAST(airdate, '2015-12-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY095', 5, 95, 'Hot-blooded Hariborg! Puni-chan is Being Targeted!!', '2015-11-05') ON DUPLICATE KEY UPDATE series = 5, number = 95, title = 'Hot-blooded Hariborg! Puni-chan is Being Targeted!!', airdate = LEAST(airdate, '2015-11-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY095', 1, 890, 'Love Strikes! Eevee, Yikes!', '2016-02-27') ON DUPLICATE KEY UPDATE season = 1, number = 890, title = 'Love Strikes! Eevee, Yikes!', airdate = LEAST(airdate, '2016-02-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY096', 5, 96, 'Mega Tabunne VS Giga Giga Nyarth!!', '2015-11-12') ON DUPLICATE KEY UPDATE series = 5, number = 96, title = 'Mega Tabunne VS Giga Giga Nyarth!!', airdate = LEAST(airdate, '2015-11-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY096', 1, 891, 'A Giga Battle with Mega Results!', '2016-03-05') ON DUPLICATE KEY UPDATE season = 1, number = 891, title = 'A Giga Battle with Mega Results!', airdate = LEAST(airdate, '2016-03-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY097', 5, 97, 'Shishiko and Kaenjishi! A Fiery Journey!!', '2015-11-19') ON DUPLICATE KEY UPDATE series = 5, number = 97, title = 'Shishiko and Kaenjishi! A Fiery Journey!!', airdate = LEAST(airdate, '2015-11-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY097', 1, 892, 'A Fiery Rite of Passage!', '2016-03-12') ON DUPLICATE KEY UPDATE season = 1, number = 892, title = 'A Fiery Rite of Passage!', airdate = LEAST(airdate, '2016-03-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY098', 5, 98, 'Pikachu, Dreams of Puni-chan!', '2015-11-26') ON DUPLICATE KEY UPDATE series = 5, number = 98, title = 'Pikachu, Dreams of Puni-chan!', airdate = LEAST(airdate, '2015-11-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY098', 1, 893, 'Dream a Little Dream from Me!', '2016-03-19') ON DUPLICATE KEY UPDATE season = 1, number = 893, title = 'Dream a Little Dream from Me!', airdate = LEAST(airdate, '2016-03-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY099', 5, 99, 'Welcome to the Ninja Village! The Legend of the Heroic Gekkouga!!', '2015-12-03') ON DUPLICATE KEY UPDATE series = 5, number = 99, title = 'Welcome to the Ninja Village! The Legend of the Heroic Gekkouga!!', airdate = LEAST(airdate, '2015-12-03');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY099', 1, 894, 'The Legend of the Ninja Hero!', '2016-03-26') ON DUPLICATE KEY UPDATE season = 1, number = 894, title = 'The Legend of the Ninja Hero!', airdate = LEAST(airdate, '2016-03-26');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY100', 5, 100, 'Decisive Battle in the Ninja Village! Gekogashira VS Kirikizan!!', '2015-12-10') ON DUPLICATE KEY UPDATE series = 5, number = 100, title = 'Decisive Battle in the Ninja Village! Gekogashira VS Kirikizan!!', airdate = LEAST(airdate, '2015-12-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY100', 1, 895, 'A Festival of Decisions!', '2016-04-02') ON DUPLICATE KEY UPDATE season = 1, number = 895, title = 'A Festival of Decisions!', airdate = LEAST(airdate, '2016-04-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY101', 5, 101, 'Dance, Eievui! Its TryPokaron Debut!!', '2015-12-17') ON DUPLICATE KEY UPDATE series = 5, number = 101, title = 'Dance, Eievui! Its TryPokaron Debut!!', airdate = LEAST(airdate, '2015-12-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY101', 1, 896, 'A Dancing Debut!', '2016-04-09') ON DUPLICATE KEY UPDATE season = 1, number = 896, title = 'A Dancing Debut!', airdate = LEAST(airdate, '2016-04-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY102', 5, 102, 'Terminus Cave! The Mystery of Z is Set in Motion!!', '2015-12-24') ON DUPLICATE KEY UPDATE series = 5, number = 102, title = 'Terminus Cave! The Mystery of Z is Set in Motion!!', airdate = LEAST(airdate, '2015-12-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY102', 1, 897, 'Meeting at Terminus Cave!', '2016-04-16') ON DUPLICATE KEY UPDATE season = 1, number = 897, title = 'Meeting at Terminus Cave!', airdate = LEAST(airdate, '2016-04-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY103', 5, 103, 'Eureka and Puni-chan!', '2016-01-14') ON DUPLICATE KEY UPDATE series = 5, number = 103, title = 'Eureka and Puni-chan!', airdate = LEAST(airdate, '2016-01-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY103', 1, 898, 'A Cellular Connection!', '2016-04-23') ON DUPLICATE KEY UPDATE season = 1, number = 898, title = 'A Cellular Connection!', airdate = LEAST(airdate, '2016-04-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY104', 5, 104, 'Onbat and Flaette! An Encounter in the Wind!!', '2016-01-21') ON DUPLICATE KEY UPDATE series = 5, number = 104, title = 'Onbat and Flaette! An Encounter in the Wind!!', airdate = LEAST(airdate, '2016-01-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY104', 1, 899, 'A Windswept Encounter!', '2016-04-30') ON DUPLICATE KEY UPDATE season = 1, number = 899, title = 'A Windswept Encounter!', airdate = LEAST(airdate, '2016-04-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY105', 5, 105, 'Satoshi and Serena! Catch One at the Dance Party!!', '2016-01-28') ON DUPLICATE KEY UPDATE series = 5, number = 105, title = 'Satoshi and Serena! Catch One at the Dance Party!!', airdate = LEAST(airdate, '2016-01-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY105', 1, 900, 'Party Dancecapades!', '2016-05-07') ON DUPLICATE KEY UPDATE season = 1, number = 900, title = 'Party Dancecapades!', airdate = LEAST(airdate, '2016-05-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY106', 5, 106, 'The Strongest Mega Battle! Gekkouga VS Mega Lizardon!!', '2016-02-04') ON DUPLICATE KEY UPDATE series = 5, number = 106, title = 'The Strongest Mega Battle! Gekkouga VS Mega Lizardon!!', airdate = LEAST(airdate, '2016-02-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY106', 1, 901, 'A Meeting of Two Journeys!', '2016-05-14') ON DUPLICATE KEY UPDATE season = 1, number = 901, title = 'A Meeting of Two Journeys!', airdate = LEAST(airdate, '2016-05-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY107', 5, 107, 'The Explosive Ground Force! The Zygarde Capture Operation!!', '2016-02-11') ON DUPLICATE KEY UPDATE series = 5, number = 107, title = 'The Explosive Ground Force! The Zygarde Capture Operation!!', airdate = LEAST(airdate, '2016-02-11');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY107', 1, 902, 'An Explosive Operation!', '2016-05-21') ON DUPLICATE KEY UPDATE season = 1, number = 902, title = 'An Explosive Operation!', airdate = LEAST(airdate, '2016-05-21');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY108', 5, 108, 'The Brigarron from the Wilderness! The Tree-planting Robon!!', '2016-02-18') ON DUPLICATE KEY UPDATE series = 5, number = 108, title = 'The Brigarron from the Wilderness! The Tree-planting Robon!!', airdate = LEAST(airdate, '2016-02-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY108', 1, 903, 'A Watershed Moment!', '2016-05-28') ON DUPLICATE KEY UPDATE season = 1, number = 903, title = 'A Watershed Moment!', airdate = LEAST(airdate, '2016-05-28');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY109', 5, 109, 'The Master Class Trial! What Will You Do, Serena!?', '2016-02-25') ON DUPLICATE KEY UPDATE series = 5, number = 109, title = 'The Master Class Trial! What Will You Do, Serena!?', airdate = LEAST(airdate, '2016-02-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY109', 1, 904, 'Master Class Choices!', '2016-06-04') ON DUPLICATE KEY UPDATE season = 1, number = 904, title = 'Master Class Choices!', airdate = LEAST(airdate, '2016-06-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY110', 5, 110, 'Thunder and Onvern! The Lightning of Anger!!', '2016-03-03') ON DUPLICATE KEY UPDATE series = 5, number = 110, title = 'Thunder and Onvern! The Lightning of Anger!!', airdate = LEAST(airdate, '2016-03-03');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY110', 1, 905, 'An Electrifying Rage!', '2016-06-11') ON DUPLICATE KEY UPDATE season = 1, number = 905, title = 'An Electrifying Rage!', airdate = LEAST(airdate, '2016-06-11');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY111', 5, 111, 'Left and Right! The Kametete\'s Swaying Heart!!', '2016-03-10') ON DUPLICATE KEY UPDATE series = 5, number = 111, title = 'Left and Right! The Kametete\'s Swaying Heart!!', airdate = LEAST(airdate, '2016-03-10');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY111', 1, 906, 'Unlocking Some Respect!', '2016-06-18') ON DUPLICATE KEY UPDATE season = 1, number = 906, title = 'Unlocking Some Respect!', airdate = LEAST(airdate, '2016-06-18');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY112', 5, 112, 'The Master Class Begins! A Maidens\' Fierce Fight Where Sparks Fly!!', '2016-03-17') ON DUPLICATE KEY UPDATE series = 5, number = 112, title = 'The Master Class Begins! A Maidens\' Fierce Fight Where Sparks Fly!!', airdate = LEAST(airdate, '2016-03-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY112', 1, 907, 'Master Class Is in Session!', '2016-06-25') ON DUPLICATE KEY UPDATE season = 1, number = 907, title = 'Master Class Is in Session!', airdate = LEAST(airdate, '2016-06-25');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY113', 5, 113, 'Elle VS Serena! Open the Door to the Future!!', '2016-03-24') ON DUPLICATE KEY UPDATE series = 5, number = 113, title = 'Elle VS Serena! Open the Door to the Future!!', airdate = LEAST(airdate, '2016-03-24');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY113', 1, 908, 'Performing a Pathway to the Future!', '2016-07-02') ON DUPLICATE KEY UPDATE season = 1, number = 908, title = 'Performing a Pathway to the Future!', airdate = LEAST(airdate, '2016-07-02');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY114', 5, 114, 'A Bride for Citron!? Eureka\'s S\'il-vous-plaît Panic!!', '2016-04-07') ON DUPLICATE KEY UPDATE series = 5, number = 114, title = 'A Bride for Citron!? Eureka\'s S\'il-vous-plaît Panic!!', airdate = LEAST(airdate, '2016-04-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY114', 1, 909, 'A Keeper for Keeps?!', '2016-07-09') ON DUPLICATE KEY UPDATE season = 1, number = 909, title = 'A Keeper for Keeps?!', airdate = LEAST(airdate, '2016-07-09');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY115', 5, 115, 'Serena Becomes Satoshi! The Strongest Pikachu Showdown!!', '2016-04-14') ON DUPLICATE KEY UPDATE series = 5, number = 115, title = 'Serena Becomes Satoshi! The Strongest Pikachu Showdown!!', airdate = LEAST(airdate, '2016-04-14');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY115', 1, 910, 'Battling at Full Volume!', '2016-07-16') ON DUPLICATE KEY UPDATE season = 1, number = 910, title = 'Battling at Full Volume!', airdate = LEAST(airdate, '2016-07-16');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY116', 5, 116, 'Satoshi and Alan! Gekkouga VS Mega Lizardon Once Again!!', '2016-04-21') ON DUPLICATE KEY UPDATE series = 5, number = 116, title = 'Satoshi and Alan! Gekkouga VS Mega Lizardon Once Again!!', airdate = LEAST(airdate, '2016-04-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY116', 1, 911, 'The Synchronicity Test!', '2016-07-23') ON DUPLICATE KEY UPDATE season = 1, number = 911, title = 'The Synchronicity Test!', airdate = LEAST(airdate, '2016-07-23');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY117', 5, 117, 'The Forest\'s Curse and the White Bokurei!', '2016-04-28') ON DUPLICATE KEY UPDATE series = 5, number = 117, title = 'The Forest\'s Curse and the White Bokurei!', airdate = LEAST(airdate, '2016-04-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY117', 1, 912, 'Making Friends and Influencing Villains!', '2016-07-30') ON DUPLICATE KEY UPDATE season = 1, number = 912, title = 'Making Friends and Influencing Villains!', airdate = LEAST(airdate, '2016-07-30');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY118', 5, 118, 'Satoshi VS Champion Carnet! VS Mega Sirnight!!', '2016-05-05') ON DUPLICATE KEY UPDATE series = 5, number = 118, title = 'Satoshi VS Champion Carnet! VS Mega Sirnight!!', airdate = LEAST(airdate, '2016-05-05');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY118', 1, 913, 'Championing a Research Battle!', '2016-08-06') ON DUPLICATE KEY UPDATE season = 1, number = 913, title = 'Championing a Research Battle!', airdate = LEAST(airdate, '2016-08-06');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY119', 5, 119, 'Rival Showdown! Satoshi VS Shōta!!', '2016-05-12') ON DUPLICATE KEY UPDATE series = 5, number = 119, title = 'Rival Showdown! Satoshi VS Shōta!!', airdate = LEAST(airdate, '2016-05-12');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY119', 1, 914, 'A Full Strength Battle Surprise!', '2016-08-13') ON DUPLICATE KEY UPDATE season = 1, number = 914, title = 'A Full Strength Battle Surprise!', airdate = LEAST(airdate, '2016-08-13');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY120', 5, 120, 'Eisetsu Gym Battle! Battlefield of Ice!!', '2016-05-19') ON DUPLICATE KEY UPDATE series = 5, number = 120, title = 'Eisetsu Gym Battle! Battlefield of Ice!!', airdate = LEAST(airdate, '2016-05-19');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY120', 1, 915, 'All Hail the Ice Battlefield!', '2016-08-20') ON DUPLICATE KEY UPDATE season = 1, number = 915, title = 'All Hail the Ice Battlefield!', airdate = LEAST(airdate, '2016-08-20');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY121', 5, 121, 'The Bewildering Woods... The Dawn of Evolution!', '2016-05-26') ON DUPLICATE KEY UPDATE series = 5, number = 121, title = 'The Bewildering Woods... The Dawn of Evolution!', airdate = LEAST(airdate, '2016-05-26');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY121', 1, 916, 'Seeing the Forest for the Trees!', '2016-08-27') ON DUPLICATE KEY UPDATE season = 1, number = 916, title = 'Seeing the Forest for the Trees!', airdate = LEAST(airdate, '2016-08-27');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY122', 5, 122, 'Satoshi Gekkouga VS Mega Yukinooh! Unleash the Giant Water Shuriken!!', '2016-06-02') ON DUPLICATE KEY UPDATE series = 5, number = 122, title = 'Satoshi Gekkouga VS Mega Yukinooh! Unleash the Giant Water Shuriken!!', airdate = LEAST(airdate, '2016-06-02');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY122', 1, 917, 'A Real Icebreaker!', '2016-09-03') ON DUPLICATE KEY UPDATE season = 1, number = 917, title = 'A Real Icebreaker!', airdate = LEAST(airdate, '2016-09-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY123', 5, 123, 'Find Melecie! Numelgon and Dedenne!!', '2016-06-09') ON DUPLICATE KEY UPDATE series = 5, number = 123, title = 'Find Melecie! Numelgon and Dedenne!!', airdate = LEAST(airdate, '2016-06-09');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY123', 1, 918, 'A Diamond in the Rough!', '2016-09-10') ON DUPLICATE KEY UPDATE season = 1, number = 918, title = 'A Diamond in the Rough!', airdate = LEAST(airdate, '2016-09-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY124', 5, 124, 'The Explosive Heat at the Mechanical Festival!', '2016-06-16') ON DUPLICATE KEY UPDATE series = 5, number = 124, title = 'The Explosive Heat at the Mechanical Festival!', airdate = LEAST(airdate, '2016-06-16');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY124', 1, 919, 'A Gaggle of Gadget Greatness!', '2016-09-17') ON DUPLICATE KEY UPDATE season = 1, number = 919, title = 'A Gaggle of Gadget Greatness!', airdate = LEAST(airdate, '2016-09-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY125', 5, 125, 'The Kalos League Begins! The Mega Lizardon Showdown: X VS Y!!', '2016-06-30') ON DUPLICATE KEY UPDATE series = 5, number = 125, title = 'The Kalos League Begins! The Mega Lizardon Showdown: X VS Y!!', airdate = LEAST(airdate, '2016-06-30');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY125', 1, 920, 'A League of His Own!', '2016-09-24') ON DUPLICATE KEY UPDATE season = 1, number = 920, title = 'A League of His Own!', airdate = LEAST(airdate, '2016-09-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY126', 5, 126, 'Mega Jukain VS Raichu! I Received Some Experience Points!!', '2016-07-07') ON DUPLICATE KEY UPDATE series = 5, number = 126, title = 'Mega Jukain VS Raichu! I Received Some Experience Points!!', airdate = LEAST(airdate, '2016-07-07');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY126', 1, 921, 'Valuable Experience for All!', '2016-10-01') ON DUPLICATE KEY UPDATE season = 1, number = 921, title = 'Valuable Experience for All!', airdate = LEAST(airdate, '2016-10-01');
INSERT INTO episodes (code, title, airdate) VALUES ('M19', 'Volcanion and the Mechanical Magearna', '2016-07-16') ON DUPLICATE KEY UPDATE title = 'Volcanion and the Mechanical Magearna', airdate = LEAST(airdate, '2016-07-16');
INSERT INTO dubs (code, title, airdate) VALUES ('M19', 'Pokémon the Movie: Volcanion and the Mechanical Marvel', '2016-11-04') ON DUPLICATE KEY UPDATE title = 'Pokémon the Movie: Volcanion and the Mechanical Marvel', airdate = LEAST(airdate, '2016-11-04');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY127', 5, 127, 'The Semifinal Full Battle! Satoshi VS Shōta!!', '2016-07-21') ON DUPLICATE KEY UPDATE series = 5, number = 127, title = 'The Semifinal Full Battle! Satoshi VS Shōta!!', airdate = LEAST(airdate, '2016-07-21');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY127', 1, 922, 'Analysis Versus Passion!', '2016-10-08') ON DUPLICATE KEY UPDATE season = 1, number = 922, title = 'Analysis Versus Passion!', airdate = LEAST(airdate, '2016-10-08');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY128', 5, 128, 'Decisive Rival Battle! Satoshi Gekkouga VS Mega Jukain!!', '2016-07-28') ON DUPLICATE KEY UPDATE series = 5, number = 128, title = 'Decisive Rival Battle! Satoshi Gekkouga VS Mega Jukain!!', airdate = LEAST(airdate, '2016-07-28');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY128', 1, 923, 'A Riveting Rivalry!', '2016-10-15') ON DUPLICATE KEY UPDATE season = 1, number = 923, title = 'A Riveting Rivalry!', airdate = LEAST(airdate, '2016-10-15');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY129', 5, 129, 'Fierce Fighting at the Kalos League! Gather, All of My Passion!!', '2016-08-04') ON DUPLICATE KEY UPDATE series = 5, number = 129, title = 'Fierce Fighting at the Kalos League! Gather, All of My Passion!!', airdate = LEAST(airdate, '2016-08-04');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY129', 1, 924, 'Kalos League Passion with a Certain Flare!', '2016-10-22') ON DUPLICATE KEY UPDATE season = 1, number = 924, title = 'Kalos League Passion with a Certain Flare!', airdate = LEAST(airdate, '2016-10-22');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY130', 5, 130, 'The Finals! Satoshi VS Alan!!', '2016-08-11') ON DUPLICATE KEY UPDATE series = 5, number = 130, title = 'The Finals! Satoshi VS Alan!!', airdate = LEAST(airdate, '2016-08-11');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY130', 1, 925, 'Finals Not for the Faint-Hearted!', '2016-10-29') ON DUPLICATE KEY UPDATE season = 1, number = 925, title = 'Finals Not for the Faint-Hearted!', airdate = LEAST(airdate, '2016-10-29');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY131', 5, 131, 'Kalos League Victory! Satoshi\'s Ultimate Match!!', '2016-08-18') ON DUPLICATE KEY UPDATE series = 5, number = 131, title = 'Kalos League Victory! Satoshi\'s Ultimate Match!!', airdate = LEAST(airdate, '2016-08-18');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY131', 1, 926, 'Down to the Fiery Finish!', '2016-11-05') ON DUPLICATE KEY UPDATE season = 1, number = 926, title = 'Down to the Fiery Finish!', airdate = LEAST(airdate, '2016-11-05');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY132', 5, 132, 'Flare Gang Attacks! The Zygarde at the Prism Tower!!', '2016-08-25') ON DUPLICATE KEY UPDATE series = 5, number = 132, title = 'Flare Gang Attacks! The Zygarde at the Prism Tower!!', airdate = LEAST(airdate, '2016-08-25');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY132', 1, 927, 'A Towering Takeover!', '2016-11-12') ON DUPLICATE KEY UPDATE season = 1, number = 927, title = 'A Towering Takeover!', airdate = LEAST(airdate, '2016-11-12');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY133', 5, 133, 'The Shocking Zygarde VS Zygarde! The Collapsing World!!', '2016-09-01') ON DUPLICATE KEY UPDATE series = 5, number = 133, title = 'The Shocking Zygarde VS Zygarde! The Collapsing World!!', airdate = LEAST(airdate, '2016-09-01');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY133', 1, 928, 'Coming Apart at the Dreams!', '2016-11-19') ON DUPLICATE KEY UPDATE season = 1, number = 928, title = 'Coming Apart at the Dreams!', airdate = LEAST(airdate, '2016-11-19');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY134', 5, 134, 'Siege of Miare Gym! Citroid Forever!!', '2016-09-08') ON DUPLICATE KEY UPDATE series = 5, number = 134, title = 'Siege of Miare Gym! Citroid Forever!!', airdate = LEAST(airdate, '2016-09-08');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY134', 1, 929, 'The Right Hero for the Right Job!', '2016-12-03') ON DUPLICATE KEY UPDATE season = 1, number = 929, title = 'The Right Hero for the Right Job!', airdate = LEAST(airdate, '2016-12-03');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY135', 5, 135, 'The Megalith Moves Forward! The Kalos Line of Defense!!', '2016-09-15') ON DUPLICATE KEY UPDATE series = 5, number = 135, title = 'The Megalith Moves Forward! The Kalos Line of Defense!!', airdate = LEAST(airdate, '2016-09-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY135', 1, 930, 'Rocking Kalos Defenses!', '2016-12-10') ON DUPLICATE KEY UPDATE season = 1, number = 930, title = 'Rocking Kalos Defenses!', airdate = LEAST(airdate, '2016-12-10');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY136', 5, 136, 'The Zygarde Counterattack! The Final Decisive Battle of Kalos!!', '2016-09-15') ON DUPLICATE KEY UPDATE series = 5, number = 136, title = 'The Zygarde Counterattack! The Final Decisive Battle of Kalos!!', airdate = LEAST(airdate, '2016-09-15');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY136', 1, 931, 'Forming a More Perfect Union!', '2016-12-17') ON DUPLICATE KEY UPDATE season = 1, number = 931, title = 'Forming a More Perfect Union!', airdate = LEAST(airdate, '2016-12-17');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY137', 5, 137, 'Starting from Zero! Citron\'s Decision!!', '2016-10-06') ON DUPLICATE KEY UPDATE series = 5, number = 137, title = 'Starting from Zero! Citron\'s Decision!!', airdate = LEAST(airdate, '2016-10-06');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY137', 1, 932, 'Battling With a Clean Slate!', '2016-12-24') ON DUPLICATE KEY UPDATE season = 1, number = 932, title = 'Battling With a Clean Slate!', airdate = LEAST(airdate, '2016-12-24');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY138', 5, 138, 'The Last Battle with Satoshi! Serena\'s Choice!!', '2016-10-13') ON DUPLICATE KEY UPDATE series = 5, number = 138, title = 'The Last Battle with Satoshi! Serena\'s Choice!!', airdate = LEAST(airdate, '2016-10-13');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY138', 1, 933, 'The First Day of the Rest of Your Life!', '2017-01-07') ON DUPLICATE KEY UPDATE season = 1, number = 933, title = 'The First Day of the Rest of Your Life!', airdate = LEAST(airdate, '2017-01-07');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY139', 5, 139, 'Farewell, Satoshi Gekkouga! Xerosicy\'s Counterattack!!', '2016-10-20') ON DUPLICATE KEY UPDATE series = 5, number = 139, title = 'Farewell, Satoshi Gekkouga! Xerosicy\'s Counterattack!!', airdate = LEAST(airdate, '2016-10-20');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY139', 1, 934, 'Facing the Needs of the Many!', '2017-01-14') ON DUPLICATE KEY UPDATE season = 1, number = 934, title = 'Facing the Needs of the Many!', airdate = LEAST(airdate, '2017-01-14');
INSERT INTO episodes (code, series, number, title, airdate) VALUES ('XY140', 5, 140, 'The Endless Zero! Until the Day We Meet Again!!', '2016-10-27') ON DUPLICATE KEY UPDATE series = 5, number = 140, title = 'The Endless Zero! Until the Day We Meet Again!!', airdate = LEAST(airdate, '2016-10-27');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('XY140', 1, 935, 'Till We Compete Again!', '2017-01-21') ON DUPLICATE KEY UPDATE season = 1, number = 935, title = 'Till We Compete Again!', airdate = LEAST(airdate, '2017-01-21');
INSERT INTO episodes (code, title, airdate) VALUES ('SS036', 'The Legend of XYZ!', '2016-11-03') ON DUPLICATE KEY UPDATE title = 'The Legend of XYZ!', airdate = LEAST(airdate, '2016-11-03');
INSERT INTO dubs (code, title, airdate) VALUES ('SS036', 'The Legend of X, Y, and Z!', '2017-01-28') ON DUPLICATE KEY UPDATE title = 'The Legend of X, Y, and Z!', airdate = LEAST(airdate, '2017-01-28');
INSERT INTO episodes (code, title, airdate) VALUES ('SS037', 'The Strongest Duo! Citron and Dent!!', '2016-11-10') ON DUPLICATE KEY UPDATE title = 'The Strongest Duo! Citron and Dent!!', airdate = LEAST(airdate, '2016-11-10');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM001', 1, 'Alola! The Starting Island, the Starter Pokémon!!', '2016-11-17') ON DUPLICATE KEY UPDATE number = 1, title = 'Alola! The Starting Island, the Starter Pokémon!!', airdate = LEAST(airdate, '2016-11-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('SM001', 1, 936, 'Alola to New Adventure!', '2016-12-05') ON DUPLICATE KEY UPDATE season = 1, number = 936, title = 'Alola to New Adventure!', airdate = LEAST(airdate, '2016-12-05');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM002', 2, 'The Guardian Deity Kapu-Kokeko Appears! Challenge, Our Z-Move!!', '2016-11-17') ON DUPLICATE KEY UPDATE number = 2, title = 'The Guardian Deity Kapu-Kokeko Appears! Challenge, Our Z-Move!!', airdate = LEAST(airdate, '2016-11-17');
INSERT INTO dubs (code, season, number, title, airdate) VALUES ('SM002', 1, 937, 'The Guardian\'s Challenge!', '2016-12-05') ON DUPLICATE KEY UPDATE season = 1, number = 937, title = 'The Guardian\'s Challenge!', airdate = LEAST(airdate, '2016-12-05');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM003', 3, 'Hello, Roto, I\'m the Rotom Pokédex, Roto!', '2016-11-24') ON DUPLICATE KEY UPDATE number = 3, title = 'Hello, Roto, I\'m the Rotom Pokédex, Roto!', airdate = LEAST(airdate, '2016-11-24');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM004', 4, 'It\'s Mokuroh! Catching Pokémon in Alola!!', '2016-11-24') ON DUPLICATE KEY UPDATE number = 4, title = 'It\'s Mokuroh! Catching Pokémon in Alola!!', airdate = LEAST(airdate, '2016-11-24');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM005', 5, 'Ashimari, Give it Your bALLoon!', '2016-12-01') ON DUPLICATE KEY UPDATE number = 5, title = 'Ashimari, Give it Your bALLoon!', airdate = LEAST(airdate, '2016-12-01');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM006', 6, 'The Shocking and Prickly Togedemaru!', '2016-12-08') ON DUPLICATE KEY UPDATE number = 6, title = 'The Shocking and Prickly Togedemaru!', airdate = LEAST(airdate, '2016-12-08');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM007', 7, 'The Vagabond in the Market, Nyabby!', '2016-12-15') ON DUPLICATE KEY UPDATE number = 7, title = 'The Vagabond in the Market, Nyabby!', airdate = LEAST(airdate, '2016-12-15');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM008', 8, 'Who\'ll Be in Charge of the Egg?', '2016-12-22') ON DUPLICATE KEY UPDATE number = 8, title = 'Who\'ll Be in Charge of the Egg?', airdate = LEAST(airdate, '2016-12-22');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM009', 9, 'The Leader Pokémon is Dekagūsu!', '2017-01-05') ON DUPLICATE KEY UPDATE number = 9, title = 'The Leader Pokémon is Dekagūsu!', airdate = LEAST(airdate, '2017-01-05');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM010', 10, 'Will the Z-Move Work! Face the Grand Trial!!', '2017-01-12') ON DUPLICATE KEY UPDATE number = 10, title = 'Will the Z-Move Work! Face the Grand Trial!!', airdate = LEAST(airdate, '2017-01-12');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM011', 11, 'Satoshi Visits Kaki!', '2017-01-19') ON DUPLICATE KEY UPDATE number = 11, title = 'Satoshi Visits Kaki!', airdate = LEAST(airdate, '2017-01-19');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM012', 12, 'The Extracurricular Lesson is Hidoide!?', '2017-01-26') ON DUPLICATE KEY UPDATE number = 12, title = 'The Extracurricular Lesson is Hidoide!?', airdate = LEAST(airdate, '2017-01-26');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM013', 13, 'The Big Alola Pancake Race!', '2017-02-02') ON DUPLICATE KEY UPDATE number = 13, title = 'The Big Alola Pancake Race!', airdate = LEAST(airdate, '2017-02-02');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM014', 14, 'The Crystal of Courage, Lilie and Rokon!', '2017-02-09') ON DUPLICATE KEY UPDATE number = 14, title = 'The Crystal of Courage, Lilie and Rokon!', airdate = LEAST(airdate, '2017-02-09');
INSERT INTO episodes (code, number, title, airdate) VALUES ('SM015', 15, 'The Clawed Hill, Iwanko and Lugalgan!!', '2017-02-23') ON DUPLICATE KEY UPDATE number = 15, title = 'The Clawed Hill, Iwanko and Lugalgan!!', airdate = LEAST(airdate, '2017-02-23');
INSERT INTO episodes (code, title, airdate) VALUES ('M20', 'I Choose You!', '2017-07-15') ON DUPLICATE KEY UPDATE title = 'I Choose You!', airdate = LEAST(airdate, '2017-07-15');
