Question: When did Japan finish invading the country where Gyeongju bread was first baked?

full_context: Document 1: Bánh hỏi: "Bánh hỏi" originated from the Bình Định Province of Vietnam's South Central Coast region. People in Bình Định eat "bánh hỏi" for almost any meal during the day, instead of rice or noodle soups.
Document 2: Kaya toast: Kaya toast is a well-known snack in Singapore and Malaysia. Kaya toast is prepared with kaya (coconut jam), a topping of sugar, coconut milk and eggs, pandan, and sometimes margarine or butter. Kaya is generally served on toast, and also sometimes on crackers. It is considered a breakfast staple, and remains popular in Singapore. The dish is sometimes dipped into soft-boiled egg with a little dark soy sauce and white pepper.
Document 3: Samurai: It should be noted that many samurai forces that were active throughout this period were not deployed to Korea; most importantly, the daimyo Tokugawa Ieyasu carefully kept forces under his command out of the Korean campaigns, and other samurai commanders who were opposed to Hideyoshi's domination of Japan either mulled Hideyoshi's call to invade Korea or contributed a small token force. Most commanders who did opposed or otherwise resisted/resented Hideyoshi ended up as part of the so-called Eastern Army, while commanders loyal to Hideyoshi and his son (a notable exception to this trend was Katō Kiyomasa, who deployed with Tokugawa and the Eastern Army) were largely committed to the Western Army; the two opposing sides (so named for the relative geographical locations of their respective commanders' domains) would later clash, most notably at the Battle of Sekigahara, which was won by Tokugawa Ieyasu and the Eastern Forces, paving the way for the establishment of the Tokugawa Shogunate.
Document 4: Ovelgönne bread roll: The Ovelgönne Bread Roll is the remaining part of a bread roll originating from the Pre-Roman Iron Age of Northern Europe, which was found in 1952 during archaeological excavations in a loam mine in the Buxtehude district Ovelgönne in Lower Saxony, Germany. The piece of bread is the oldest surviving viennoiserie and formed bakery product from Europe. The find, along with a reconstruction, are in the permanent exhibition of the Archaeological Museum Hamburg in Harburg, Hamburg.
Document 5: Samurai: Katō Kiyomasa was one of the most powerful and well-known lords of the Sengoku Era. He commanded most of Japan's major clans during the invasion of Korea (1592–1598). In a handbook he addressed to "all samurai, regardless of rank" he told his followers that a warrior's only duty in life was to "...grasp the long and the short swords and to die". He also ordered his followers to put forth great effort in studying the military classics, especially those related to loyalty and filial piety. He is best known for his quote: "If a man does not investigate into the matter of Bushido daily, it will be difficult for him to die a brave and manly death. Thus it is essential to engrave this business of the warrior into one's mind well."
Document 6: Samurai: Historian H. Paul Varley notes the description of Japan given by Jesuit leader St. Francis Xavier (1506–1552): "There is no nation in the world which fears death less." Xavier further describes the honour and manners of the people: "I fancy that there are no people in the world more punctilious about their honour than the Japanese, for they will not put up with a single insult or even a word spoken in anger." Xavier spent the years 1549–1551 converting Japanese to Christianity. He also observed: "The Japanese are much braver and more warlike than the people of China, Korea, Ternate and all of the other nations around the Philippines."
Document 7: Bánh chuối: Bánh chuối (literally "banana cake") is a sweet banana cake or bread pudding from Vietnam. Although its exact ingredients may vary, it is usually made with ripe bananas or plantains, coconut milk, sugar, white bread, shredded young coconut, condensed milk, butter, egg, and vanilla extract. In the finished dish, the cooked banana often appears purplish-red in color.
Document 8: Gukhwa-ppang: Gukhwa-ppang (; "chrysanthemum bread") is a flower-shaped pastry stuffed with sweetened red bean paste. It is a warm street food sold throughout Korea. It is grilled in an appliance similar to a waffle iron, but with flower-shaped molds.
Document 9: Huang (surname): Huang or Hwang or Hoang Chinese character representing Huang Romanization Huáng (Mandarin) Hwang (Korean) Huỳnh or Hoàng (Vietnamese) Oey or Ung (Hokkien and Teochew) Uy (Hokkien: Philippines) Ooi or Hûin (Hakka) Waan (Shanghainese) Wong (Cantonese) Wee (Hainanese) OENG or EUNG (Cambodia) Language (s) Chinese Origin Region of origin China Meaning Huang Kingdom or Yellow
Document 10: Tiger bread: The bread is generally made with sesame oil, which gives it a distinct aroma, and with a pattern baked into the top made by painting rice paste onto the surface prior to baking. The paste dries and cracks during the baking process. The rice paste crust also gives the bread a distinctive flavour. It has a crusty exterior, but is soft inside. Typically, tiger bread is made as a white bread bloomer loaf or bread roll, but the technique can be applied to any shape of bread.
Document 11: Samurai: The philosophies of Buddhism and Zen, and to a lesser extent Confucianism and Shinto, influenced the samurai culture. Zen meditation became an important teaching due to it offering a process to calm one's mind. The Buddhist concept of reincarnation and rebirth led samurai to abandon torture and needless killing, while some samurai even gave up violence altogether and became Buddhist monks after realizing how fruitless their killings were. Some were killed as they came to terms with these realizations in the battlefield. The most defining role that Confucianism played in samurai philosophy was to stress the importance of the lord-retainer relationship—the loyalty that a samurai was required to show his lord.
Document 12: Samurai: In the 13th century, Hōjō Shigetoki (1198–1261 AD) wrote: "When one is serving officially or in the master's court, he should not think of a hundred or a thousand people, but should consider only the importance of the master." Carl Steenstrup noted that 13th and 14th century warrior writings (gunki) "portrayed the bushi in their natural element, war, eulogizing such virtues as reckless bravery, fierce family pride, and selfless, at times senseless devotion of master and man". Feudal lords such as Shiba Yoshimasa (1350–1410 AD) stated that a warrior looked forward to a glorious death in the service of a military leader or the Emperor: "It is a matter of regret to let the moment when one should die pass by....First, a man whose profession is the use of arms should think and then act upon not only his own fame, but also that of his descendants. He should not scandalize his name forever by holding his one and only life too dear....One's main purpose in throwing away his life is to do so either for the sake of the Emperor or in some great undertaking of a military general. It is that exactly that will be the great fame of one's descendants."
Document 13: Samurai: Torii Mototada (1539–1600) was a feudal lord in the service of Tokugawa Ieyasu. On the eve of the battle of Sekigahara, he volunteered to remain behind in the doomed Fushimi Castle while his lord advanced to the east. Torii and Tokugawa both agreed that the castle was indefensible. In an act of loyalty to his lord, Torii chose to remain behind, pledging that he and his men would fight to the finish. As was custom, Torii vowed that he would not be taken alive. In a dramatic last stand, the garrison of 2,000 men held out against overwhelming odds for ten days against the massive army of Ishida Mitsunari's 40,000 warriors. In a moving last statement to his son Tadamasa, he wrote:
Document 14: Hwangnam-ppang: Hwangnam bread (named after its region of origin, Hwangnam-dong), also commonly called Gyeongju bread, is a local specialty of Gyeongju City, South Korea. It is a small pastry with a filling of red bean paste. Gyeongju bread was first baked in 1939 at a bakery in Hwangnam-dong in central Gyeongju.
Document 15: Samurai: Bushi was the name given to the ancient Japanese soldiers from traditional warrior families. The bushi class was developed mainly in the north of Japan. They formed powerful clans, which in the 12th century were against the noble families who were grouping themselves to support the imperial family who lived in Kyoto. Samurai was a word used by the Kuge aristocratic class with warriors themselves preferring the word bushi. The term Bushidō, the "way of the warrior", is derived from this term and the mansion of a warrior was called bukeyashiki.
ground_truth: 1598
sub_queries: The country for Gyeongju bread was what? Answer: Korea
When did Japan finish invading Korea ? Answer: 1598