Complex sentence: Bató left a large sum of money to maintain the Wooden Church, and stated in his will that a wooden church has to stand there as long as Protestants live in Miskolc, and cursed everyone who wants to demolish it.
Split into simpler sentences: Bató left a large sum of money to maintain the Wooden Church. He stated in his will that a wooden church has to stand there as long as Protestants live in Miskolc, and cursed everyone who would demolish it.