Question: When did Japan finish invading the country where the last name shin came from?

full_context: Document 1: Shin (Korean surname): Shin is a Korean family name. It is cognate to the Chinese family names Shēn and Xin. According to the 2000 census in South Korea, there were 911,556 people carrying the Shin surname.
Document 2: Yuan dynasty: Shi Tianze was a Han Chinese who lived in the Jin dynasty. Interethnic marriage between Han and Jurchen became common at this time. His father was Shi Bingzhi (史秉直, Shih Ping-chih). Shi Bingzhi was married to a Jurchen woman (surname Na-ho) and a Han Chinese woman (surname Chang); it is unknown which of them was Shi Tianze's mother. Shi Tianze was married to two Jurchen women, a Han Chinese woman, and a Korean woman, and his son Shi Gang was born to one of his Jurchen wives. The surnames of his Jurchen wives were Mo-nien and Na-ho; the surname of his Korean wife was Li; and the surname of his Han Chinese wife was Shi. Shi Tianze defected to Mongol forces upon their invasion of the Jin dynasty. His son Shi Gang married a Kerait woman; the Kerait were Mongolified Turkic people and were considered part of the "Mongol nation". Shi Tianze (Shih T'ien-tse), Zhang Rou (Chang Jou, 張柔), and Yan Shi (Yen Shih, 嚴實) and other high ranking Chinese who served in the Jin dynasty and defected to the Mongols helped build the structure for the administration of the new state. Chagaan (Tsagaan) and Zhang Rou jointly launched an attack on the Song dynasty ordered by Töregene Khatun.
Document 3: 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 4: 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 5: World population milestones: Country / nationality Population Born (date) Name and surname Notes Foot - notes Munich 1m 15 December 1957 Thomas Seehaus Awarded by Mayor Thomas Wimmer with a 1,000 mark savings account. United States 200m 20 November 1967 Robert Ken Woo Jr Named by Life magazine, not the government. None named for 300m. Australia 15m 29 January 1982 Sally Hodgson Awarded by Minister for Immigration and Ethnic Affairs Ian Macphee Indonesia 200m 4 February 1997 Wahyu Nusantara Aji Complains that government promises of support were not kept India 1b 11 May 2000 Aastha Arora speculation re Independence Day 1999 till Registrar demurred. Complains that government promises of support were not kept. Kyrgyzstan 5m 27 August 2002 Tynchtykbek Kuramayev Australia 21m 29 June 2007 Mia Ruby Templeton Awarded by Treasurer Peter Costello Taiwan 23m 17 July 2008 Wu Cheng - en certificate from Premier of the Republic of China Liu Chao - shiuan Auckland Region, New Zealand 1.5 m 1 February 2012 Ramonah Patience Toomalatai Welcomed by Len Brown the Mayor of Auckland Kazakhstan 17m 17 May 2013 Altynbek Eskaraev Алтынбек Ескараев Vietnam 90m 1 November 2013 Nguyễn Thị Thùy Dung randomly chosen by the General Office of Population and Family Planning from among two dozen babies born that day Philippines 100m 27 July 2014 Chonalyn Sentino Wake County, North Carolina 1m 22 August 2014 Anderson Grace Hughes Offered full scholarship by Wake Technical Community College Mongolia 3m 24 January 2015 Mongoljin Khatanbold Silicon Valley 3m 5 May 2015 Max Danner Utah 3m 24 October 2015 Sadie Christensen By governor Gary Herbert Kyrgyzstan 6m 27 November 2015 Aylin Kojosheva
Document 6: 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.
Document 7: Chae Myung-shin: Chae commanded "Skeleton Corps", guerrilla corps during the Korean War, and became the authority on guerrilla tactics of the South Korean Army.
Document 8: 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 9: Chiron (missile): The KP-SAM Shin-Gung or Shin-Kung (Korean: hangul: 신궁, hanja: 新弓) is a South Korean shoulder-launched surface-to-air missile manufactured by LIG Nex1. It is marketed internationally as the Chiron.
Document 10: 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 11: Chinese characters: When learning how to write hanja, students are taught to memorize the native Korean pronunciation for the hanja's meaning and the Sino-Korean pronunciations (the pronunciation based on the Chinese pronunciation of the characters) for each hanja respectively so that students know what the syllable and meaning is for a particular hanja. For example, the name for the hanja 水 is 물 수 (mul-su) in which 물 (mul) is the native Korean pronunciation for "water", while 수 (su) is the Sino-Korean pronunciation of the character. The naming of hanja is similar to if "water" were named "water-aqua", "horse-equus", or "gold-aurum" based on a hybridization of both the English and the Latin names. Other examples include 사람 인 (saram-in) for 人 "person/people", 큰 대 (keun-dae) for 大 "big/large//great", 작을 소 (jakeul-so) for 小 "small/little", 아래 하 (arae-ha) for 下 "underneath/below/low", 아비 부 (abi-bu) for 父 "father", and 나라이름 한 (naraimreum-han) for 韓 "Han/Korea".
Document 12: 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 13: 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 14: Han (Chinese surname): Han (simplified Chinese: 韩; traditional Chinese: 韓; pinyin: Hán; Korean: 한) is a common Chinese surname. The spelling ``Han ''is based on China's pinyin system and so used throughout Mainland China. Spelling can vary from 'Hon' in Cantonese - speaking areas to 'Hang' in Hainan.
Document 15: Chinese name: Modern Chinese names consist of a surname known as xing (姓, xìng), which comes first and is usually but not always monosyllabic, followed by a personal name called ming (名, míng), which is nearly always mono - or disyllabic. Prior to the 20th century, educated Chinese also utilized a ``courtesy name ''or`` style name'' called zi (字, zì) by which they were known among those outside their family and closest friends.
ground_truth: 1598
sub_queries: where does the last name shinn come from Answer: Korea
When did Japan finish invading Korea ? Answer: 1598