Question: Alexey Dmitrievich Tereshkov fought in the Spanish Civil War and was commander of the 413th Rifle division after an invasion of what country during World War II?

Context paragraphs:
Kornei Andrusenko: Andrusenko joined the Red Army in 1918, fighting in the Russian Civil War in Ukraine and the Polish–Soviet War.  During the interwar period, he became an infantry officer and studied at the Frunze Military Academy just before the German invasion of the Soviet Union in June 1941.  Andrusenko commanded two different rifle regiments in the Battle of Moscow before taking command of the 329th Rifle Division in December.  In March 1942, his division was encircled and destroyed.  Andrusenko escaped and was sentenced to death for "inaction", but the sentenced was changed to ten years and delayed until the end of the war.  He was demoted to command a cadet rifle brigade, which he led during the Battle of Stalingrad.  For an unauthorized retreat, he was again demoted to command of a regiment.  For his subsequent leadership of the regiment, Andrusenko was restored in rank and for his actions in the Battle of the Dnieper was awarded the title Hero of the Soviet Union.  In January 1944, he was given command of the 55th Rifle Division, leading it in Operation Bagration and the Baltic Offensive.  In the spring of 1945 Andrusenko took command of the 184th Rifle Division in the Soviet Far East and led it in the Soviet invasion of Manchuria in August of that year.  He retired from the army after the end of the war.

Operation Barbarossa: Operation Barbarossa (German: "Unternehmen Barbarossa") was the code name for the Axis invasion of the Soviet Union, starting Sunday, 22 June 1941, during World War II.

79th Motor Rifle Division: The 79th traces its history back to the formation of the Sakhalin Rifle Division on 17 August 1938.  In January 1939, the division became the 79th Mountain Rifle Division, commanded by Kombrig Ivan Makarenko.  In 1940, it was converted into the 79th Rifle Division.  It became part of the 16th Army's 56th Rifle Corps in 1943.  During August and September 1945, the division fought in the Invasion of South Sakhalin.  For its actions in the invasion, the division was awarded the honorific "Sakhalin".  During the battle for south Sakhalin, 179th Rifle Regiment Battalion commander Captain Leonid Smirnykh was posthumously awarded the title Hero of the Soviet Union after his battalion captured 5 bunkers and Smirnykh was killed by sniper fire.  Sergeant Anton Buyukly was also made a Hero of the Soviet Union posthumously in 1965 for his sacrifice in blocking a bunker firing slit with his body.

43rd Army Corps (Soviet Union): The 137th Rifle Corps was formed on 5 December 1945 in Petropavlovsk-Kamchatsky, part of the Far Eastern Military District, from the Kamchatka Defense Region.  It was commanded by Lieutenant General Alexey Gnechko until May 1950.  Gnechko was a Hero of the Soviet Union and veteran of the Soviet invasion of Manchuria.  The units of the corps were based in Kamchatka and the Northern Kuriles and included the 22nd Rifle Division, 101st Rifle Division and 255th Rifle Division.  In 1948, the 101st Rifle Division became the 6th Machine Gun Artillery Division, which was disbanded in 1953.  After the 1953 disbandment of the 14th Assault Army in Chukotka its 3rd and 8th Separate Rifle Brigades became part of the corps.

415th Rifle Division (Soviet Union): The 415th Rifle Division was formed as a standard Red Army rifle division in the late summer of 1941 in the Far Eastern Front.  It was considered to be a "sister" division to the 413th, and was one of the divisions of Siberians sent west to help defend Moscow during the winter of 1941-42.  It spent much of the next year in the same general area, west of the capital, taking part in the mostly futile battles against the German-held salient at Rzhev.  On January 14, 1944, the division shared credit with the 55th Rifle Division for the liberation of the city of Mozyr and was given its name as an honorific.  The 415th had a distinguished career as a combat unit, ending its combat path near Berlin.

95th Rifle Division: The 95th Rifle Division (Russian: 95-я стрелковая дивизия 95-y strelkovaya diviziya ) was a Red Army Rifle Division during World War II, formed thrice.  The division was first formed in November 1923 with the 6th Rifle Corps.  It fought in the Winter War and the Soviet occupation of Bessarabia and Northern Bukovina.  After Operation Barbarossa, the division fought in the retreat from Moldova and fought in the Siege of Odessa and the Siege of Sevastopol.  It was destroyed during the Siege of Sevastopol and was disbanded in late July 1942.  The division was reformed in August 1942 from the 13th Motor Rifle Division NKVD and fought at the Battle of Stalingrad.  For its actions during the battle, the division became the 75th Guards Rifle Division in March 1943.  In April 1943, the division was formed a third time at Kaluga from the 121st Rifle Brigade.  It fought in Operation Bagration.

413th Rifle Division (Soviet Union): The 413th Rifle Division was formed as a standard Red Army rifle division in the summer of 1941 in the Far Eastern Front.  It was considered to be a "sister" division to the 415th, and was one of the divisions of Siberians sent west to help defend Moscow during the winter of 1941-42.  It spent much of the next year in the same general area, southwest of the capital, before slowly pushing westward as part of 50th Army.  In the latter stages of Operation Bagration the division was given special recognition for its role in the liberation of Brest.  The 413th had a distinguished career as a combat unit, ending its combat path north of Berlin.

20th Rifle Division (Soviet Union): The 20th Rifle Division was an infantry division of the Soviet Red Army, formed three times.  The first formation of the division lasted from 1919 to 1921 and fought during the Russian Civil War before its downsizing into a brigade.  The brigade became the 3rd Rifle Division, the Caucasian Mountain Rifle Division, and the 20th Mountain Rifle Division during the interwar years.  In 1944 the 20th became the 20th Rifle Division again.  It was disbanded after the end of the war.  The division briefly reformed between 1955 and 1957 from the 188th Rifle Division and was converted into a motor rifle division.

Pyotr Berestov: Pyotr Filippovich Berestov (Russian: Пётр Филиппович Берестов ; December 21 [O.S. December 8] 1896 , Berestovo – November 26, 1961, Zaporozhye) was a Red Army major general during the Second World War.  Drafted into the Imperial Russian Army in 1917, Berestov participated in the Russian Revolution.  He was drafted into the Red Army, fighting in the Russian Civil War and the Polish–Soviet War.  He became a Red Army officer and served in several positions during the interwar period.  Berestov was arrested and released during the Great Purge.  He fought in the Winter War as a regimental commander.  In the early days after the German invasion of the Soviet Union, he was given command of a People's Militia regiment, which was converted into a regular regiment.  Berestov led the regiment in the early period of the Battle of Moscow and transferred to lead a regiment of the 82nd Motor Rifle Division.  Berestov became the division's commander and in the spring of 1942 briefly led the 50th Rifle Division.  In April, he took command of the 331st Rifle Division, which he led during the rest of the war.  For his leadership, Berestov was awarded the title Hero of the Soviet Union in late June 1945.  Postwar he commanded the 72nd Guards Rifle Division, which was downsized into a brigade, and the 43rd Guards Rifle Brigade, which became the 113th Guards Rifle Division.  Berestov retired in 1955 and lived in Zaporozhye until his death in 1961.

Alexey Tereshkov: Alexey Dmitrievich Tereshkov (Russian: Алексей Дмитриевич Терешков ; Belarusian: Аляксей Дзмітрыевіч Церашкоў ; 17 March 189318 March 1960) was a Belarusian Soviet Army Lieutenant general and a Hero of the Soviet Union.  Tereshkov fought in World War I as a non-commissioned officer and then as a platoon leader.  After the February Revolution he joined the Bolshevik party and became a partisan fighting against German troops in Belarus.  Tereshkov became a Red Army officer and fought in the Russian Civil War as a company commander.  He fought in the Spanish Civil War and after Operation Barbarossa was commander of the 413th Rifle Division in the Far East.  The division fought in the Battle of Moscow.  In May 1943 Tereshkov was appointed commander of the 38th Rifle Corps, leading the corps during the Battle of Smolensk, Operation Bagration, Vistula–Oder Offensive, and the Battle of Berlin.  He was awarded the title Hero of the Soviet Union for his leadership in the Vistula–Oder Offensive.  Postwar, Tereshkov led the 113th and 5th Guards Rifle Corps.  He retired in 1953 and died in 1960.

Supporting paragraphs: Alexey Tereshkov Operation Barbarossa
Answer: Soviet Union