Question: When did the country where the A5 road runs, become part of the Soviet Union?

full_context: Document 1: Outer Ring Road System: The Outer Ring Road System, or more commonly known as ORRS, is a network of major arterial roads in Singapore that forms a ring road through the towns along the city fringe. The ORRS is a semi-expressway, just like the West Coast Highway. Since 1994, roads along the ORRS have been upgraded in stages to provide a smoother route to travel across the island. Roads and interchanges along the ORRS are constantly being upgraded to cater to the ever increasing traffic demand. It starts as Portsdown Avenue in Queenstown and ends as Tampines Avenue 10 in Tampines. The series of roads passes through the areas of Queenstown, Bukit Timah, Central Catchment Nature Reserve, Bishan, Toa Payoh, Geylang and Tampines.
Document 2: A6 road (Northern Ireland): The A6 road in Northern Ireland runs for 71.4 miles (114.9km) from Belfast to Derry, via County Antrim and County Londonderry. From Belfast to Randalstown the route has been superseded as a motorway (M2 and M22). Mostly single carriageway, there is a short dual carriageway section forming the Toome bypass and in Antrim town centre. In urban and suburban districts of Belfast and Derry the route is single carriageway with 4 lanes (2 lanes in each direction). In rural parts, there are numerous climbing lanes along the route. This is one of Northern Ireland's most important arterial routes, as the road runs between its two largest cities and urban areas. Between Randalstown and Derry the road forms part of European route E16.
Document 3: A5 road (Latvia): The A5 is a national road in Latvia which is part beltway around Riga, connecting Salaspils to Babīte. The road is also known as Riga bypass. The road is part of European route E67, European route E77 and Latvian TEN-T road network. The length of A5 is 41 kilometer. Currently A5 has 1x1 lanes until interchange with A9 then it turns to 2x2 all the way until Babīte. Most of the traffic on A5 is made up by trucks. A5 crosses river Daugava on Riga HES, and the A5 part on the HES has been reconstructed in 2010/2011. Another part of A5 between A8 and A9 was reconstructed in 2011. There are plans to build a new bridge over Daugava opposite to the end of A4 (part of Riga bypass on other side of Daugava), in further future. Current speed limit is 90 km/h. The average AADT of A5 in 2016 was 12 482 cars per day.
Document 4: 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 5: A58 motorway (Netherlands): The A58 motorway is a motorway in the Netherlands. It is approximately 145 kilometers in length. The A58 is located in the Dutch provinces of North Brabant and Zeeland.
Document 6: Ontario Highway 5A: Ontario Highway 5A (1937–1953), as a former connecting link in Ontario, Canada's provincial highway system, bypassed portions of Ontario Highway 5 within what is now Toronto. There were two discontinuous segments:
Document 7: 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 8: Portugal: By the early 1970s Portugal's fast economic growth with increasing consumption and purchase of new automobiles set the priority for improvements in transportation. Again in the 1990s, after joining the European Economic Community, the country built many new motorways. Today, the country has a 68,732 km (42,708 mi) road network, of which almost 3,000 km (1,864 mi) are part of system of 44 motorways. Opened in 1944, the first motorway (which linked Lisbon to the National Stadium) was an innovative project that made Portugal among one of the first countries in the world to establish a motorway (this roadway eventually became the Lisbon-Cascais highway, or A5). But, although a few other tracts were created (around 1960 and 1970), it was only after the beginning of the 1980s that large-scale motorway construction was implemented. In 1972, Brisa, the highway concessionaire, was founded to handle the management of many of the regions motorways. On many highways, toll needs to be paid, see Via Verde. Vasco da Gama bridge is the longest bridge in Europe.
Document 9: 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 10: 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 11: Hanover: The Schnellweg (en: expressway) system, a number of Bundesstraße roads, forms a structure loosely resembling a large ring road together with A2 and A7. The roads are B 3, B 6 and B 65, called Westschnellweg (B6 on the northern part, B3 on the southern part), Messeschnellweg (B3, becomes A37 near Burgdorf, crosses A2, becomes B3 again, changes to B6 at Seelhorster Kreuz, then passes the Hanover fairground as B6 and becomes A37 again before merging into A7) and Südschnellweg (starts out as B65, becomes B3/B6/B65 upon crossing Westschnellweg, then becomes B65 again at Seelhorster Kreuz).
Document 12: Plymouth: The A38 dual-carriageway runs from east to west across the north of the city. Within the city it is designated as 'The Parkway' and represents the boundary between the urban parts of the city and the generally more recent suburban areas. Heading east, it connects Plymouth to the M5 motorway about 40 miles (65 km) away near Exeter; and heading west it connects Cornwall and Devon via the Tamar Bridge. Regular bus services are provided by Plymouth Citybus, First South West and Target Travel. There are three Park and ride services located at Milehouse, Coypool (Plympton) and George Junction (Plymouth City Airport), which are operated by First South West.
Document 13: 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 14: 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 15: 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.
ground_truth: 5 August 1940
sub_queries: A5 road >> country Answer: Latvia
when did Latvia become part of the soviet union Answer: 5 August 1940