Complex sentence: Mr. Miyagi makes a pact with Kreese to enter Daniel in the upcoming karate tournament, where he will fight Johnny and the members of Cobra Kai, so long as they agree to not harass Daniel up until the tournament.
Split into simpler sentences: Mr. Miyagi makes a pact with Kreese to enter Daniel in the upcoming karate tournament. There he will fight Johnny and the members of Cobra Kai, so long as they agree to not harass Daniel up until the tournament.