Question: When did the country, whose name in had to be replaced in a musical work, become part of the Soviet Union?

full_context: Document 1: Estonia: In 1989, during the "Singing Revolution", in a landmark demonstration for more independence, more than two million people formed a human chain stretching through Lithuania, Latvia and Estonia, called the Baltic Way. All three nations had similar experiences of occupation and similar aspirations for regaining independence. The Estonian Sovereignty Declaration was issued on 16 November 1988. On 20 August 1991, Estonia declared formal independence during the Soviet military coup attempt in Moscow, reconstituting the pre-1940 state. The Soviet Union recognised the independence of Estonia on 6 September 1991. The first country to diplomatically recognise Estonia's reclaimed independence was Iceland. The last units of the Russian army left on 31 August 1994.
Document 2: Dievs, svētī Latviju!: The music and lyrics were written in 1873 by Kārlis Baumanis, a teacher, who was part of the Young Latvian nationalist movement. It has been speculated that Baumanis may have borrowed part of the lyrics from a popular song which was sung to tune of God Save the Queen, modified them and set them to music of his own. Baumanis's lyrics were different from the modern ones: he used the term "Baltics" synonymously and interchangeably with "Latvia" and "Latvians", so "Latvia" was actually mentioned only at the beginning of the first verse. Later the term "Latvia" was removed and replaced with "Baltics" to avoid a ban on the song. This has led to the misapprehension that the term "Latvia" was not part of the song until 1920, when it was chosen as national anthem and the word "Baltics" was replaced with "Latvia".During the annexation of Latvia by the Soviet Union, the singing of "Dievs, svētī Latviju!" was banned. The Soviet republic of Latvia had its own anthem. "Dievs, svētī Latviju!" was restored as the state anthem of Latvia on 15 February 1990, a very short period before Latvian independence was restored.
Document 3: Post-Soviet states: The post-Soviet states, also collectively known as the former Soviet Union (FSU) or former Soviet Republics, are the 15 independent states that emerged from the Union of Soviet Socialist Republics in its dissolution in December 1991, with Russia internationally recognised as the successor state to the Soviet Union. On March 11, 1990, Lithuania was the first to declare its independence, with Estonia and Latvia following suit in August 1991. All three Baltic states claimed continuity from the original states that existed prior to their annexation by the Soviet Union in 1944 and were admitted to the United Nations on 17 September 1991. The remaining 12 republics all subsequently seceded. 12 of the 15 states, excluding the Baltic states, initially formed the CIS and most joined CSTO, while the Baltic states focused on European Union and NATO membership.
Document 4: Dissolution of the Soviet Union: On June 14, 1987, about 5,000 people gathered again at Freedom Monument in Riga, and laid flowers to commemorate the anniversary of Stalin's mass deportation of Latvians in 1941. This was the first large demonstration in the Baltic republics to commemorate the anniversary of an event contrary to official Soviet history. The authorities did not crack down on demonstrators, which encouraged more and larger demonstrations throughout the Baltic States. The next major anniversary after the August 23 Molotov Pact demonstration was on November 18, the date of Latvia’s independence in 1918. On November 18, 1987, hundreds of police and civilian militiamen cordoned off the central square to prevent any demonstration at Freedom Monument, but thousands lined the streets of Riga in silent protest regardless.
Document 5: History of Latvia: The First Latvian National Awakening began in the 1850s and continued to bear fruit after World War I when, after two years of struggle in the Latvian War of Independence, Latvia finally won sovereign independence, as recognised by Soviet Russia in 1920 and by the international community in 1921. The Constitution of Latvia was adopted in 1922. Political instability and effects of the Great Depression led to the May 15, 1934 coup d'état by Prime Minister Kārlis Ulmanis. Latvia's independence was interrupted in June -- July 1940, when the country was occupied and incorporated into the Soviet Union. In 1941 it was invaded and occupied by Nazi Germany, then reconquered by the Soviets in 1944 -- 45.
Document 6: America (My Country, 'Tis of Thee): ``My Country, 'Tis of Thee '', also known as`` America'', is an American patriotic song, whose lyrics were written by Samuel Francis Smith. The melody used is the same as that of the national anthem of the United Kingdom, ``God Save the Queen '', arranged by Thomas Arne. The song served as one of the de facto national anthems of the United States (along with songs like`` Hail, Columbia'') before the adoption of ``The Star - Spangled Banner ''as the official anthem in 1931.
Document 7: State Anthem of the Soviet Union: Slav'sya, Otechestvo nashe svobodnoye! (Russian: Славься, Отечество наше свободное!; Slav'sya, Otechestvo nashe svobodnoye!, lit. ``Be glorious, our free Fatherland! ''), officially known as the`` State Anthem of the Soviet Union'' (Russian: Государственный гимн СССР, tr. Gosudarstvenny Gimn SSSR) was introduced during World War II on 15 March 1944, replacing The Internationale as the official anthem of the Soviet Union and the Russian Soviet Federative Socialist Republic. The lyrics were written by Sergey Mikhalkov (1913 -- 2009) in collaboration with Gabriel El - Registan (1899 -- 1945) and the music was composed by Alexander Alexandrov (1883 -- 1946). Although the Soviet Union was dissolved in 1991, its national anthem's melody continues to be used in the Russian Federation's national anthem, which has different lyrics to the version used in the Soviet Union.
Document 8: Estonia: On 6 August 1940, Estonia was annexed by the Soviet Union as the Estonian SSR. The provisions in the Estonian constitution requiring a popular referendum to decide on joining a supra-national body were ignored. Instead the vote to join the Soviet Union was taken by those elected in the elections held the previous month. Additionally those who had failed to do their "political duty" of voting Estonia into the USSR, specifically those who had failed to have their passports stamped for voting, were condemned to death by Soviet tribunals. The repressions followed with the mass deportations carried out by the Soviets in Estonia on 14 June 1941. Many of the country's political and intellectual leaders were killed or deported to remote areas of the USSR by the Soviet authorities in 1940–1941. Repressive actions were also taken against thousands of ordinary people.
Document 9: Lithuanian Soviet Socialist Republic: The Lithuanian Soviet Socialist Republic (Lithuanian SSR; Lithuanian: Lietuvos Tarybų Socialistinė Respublika; Russian: Литовская Советская Социалистическая Республика, Litovskaya Sovetskaya Sotsialisticheskaya Respublika), also known as Soviet Lithuania or Lithuania was a republic of the Soviet Union. It existed from 1940 to 1990.
Document 10: America (My Country, 'Tis of Thee): Samuel Francis Smith wrote the lyrics to ``My Country 'Tis of Thee ''in 1831, while he was a student at the Andover Theological Seminary in Andover, Massachusetts. His friend Lowell Mason had asked him to translate the lyrics in some German school songbooks or to write new lyrics. A melody in Muzio Clementi's Symphony No. 3 (also called' The Great National 'and contains the melody of' God Save the Queen 'as a tribute to Clementi's adopted country) caught his attention. Rather than translating the lyrics from German, Smith wrote his own American patriotic hymn to the melody, completing the lyrics in thirty minutes.
Document 11: Molotov–Ribbentrop Pact: In mid-June 1940, when international attention was focused on the German invasion of France, Soviet NKVD troops raided border posts in Lithuania, Estonia and Latvia. State administrations were liquidated and replaced by Soviet cadres, in which 34,250 Latvians, 75,000 Lithuanians and almost 60,000 Estonians were deported or killed. Elections were held with single pro-Soviet candidates listed for many positions, with resulting peoples assemblies immediately requesting admission into the USSR, which was granted by the Soviet Union. The USSR annexed the whole of Lithuania, including the Scheschupe area, which was to be given to Germany.
Document 12: Vande Mataram: It played a vital role in the Indian independence movement, first sung in a political context by Rabindranath Tagore at the 1896 session of the Indian National Congress. It became a popular marching song for political activism and Indian freedom movement in 1905. Spiritual Indian nationalist and philosopher Sri Aurobindo referred it as ``National Anthem of Bengal ''. The song and the novel containing it was banned by the British government, but workers and general public defied the ban, many went to colonial prisons repeatedly for singing it, and the ban was overturned by the Indians after they gained independence from the colonial rule.
Document 13: Advance Australia Fair: Since the original lyrics were written in 1879, there have been several changes, in some cases with the intent of increasing the anthem's inclusiveness and gender neutrality. Some of these were minor while others have significantly changed the song. The original song was four verses long. For its adoption as the national anthem, the song was cut from four verses to two. The first verse was kept largely as the 1879 original, except for the change in the first line from ``Australia's sons let us rejoice ''to`` Australians all let us rejoice''. The second, third and fourth verses of the original were dropped, in favour of a modified version of the new third verse which was sung at Federation in 1901.
Document 14: Latvian Soviet Socialist Republic: Following the Welles Declaration of July 23, 1940, the annexation of Latvia into the Soviet Union (USSR) on 5 August 1940 was not recognized as legitimate by the United States, the European Community, and recognition of it as the nominal fifteenth constituent republic of the USSR was withheld for five decades. Its territory was subsequently conquered by Nazi Germany in June -- July 1941, before being retaken by the Soviets in 1944 -- 1945. Nevertheless, Latvia continued to exist as a de jure independent country with a number of countries continued to recognize Latvian diplomats and consuls who still functioned in the name of their former governments.
Document 15: Hymne an Deutschland: Its lyrics were written by Rudolf Alexander Schröder in 1950. Hermann Reutter composed its tune after Carl Orff, whom Heuss wanted to have as composer, had rejected the request and suggested Reutter instead. Heuss’ attempts failed, and in 1952 he and Chancellor Adenauer recognized the "Deutschlandlied" as the new national anthem, with only the third stanza being sung on official occasions.
ground_truth: 5 August 1940
sub_queries: What term had to be replaced? Answer: Latvia
when did Latvia become part of the soviet union Answer: 5 August 1940