Question: When was a cast member of Code of the Secret Service elected U.S. President?

full_context: Document 1: Nuclear arms race: Throughout the 1970s, both the Soviet Union and United States replaced old missiles and warheads with newer, more powerful and effective ones. This continued to worsen Soviet - U.S relations. On June 18, 1979, the SALT II treaty was signed in Vienna. This treaty limited both sides' nuclear arsenals and technology. However, this treaty as well as the era of the détente ended with the Soviet Union's invasion of Afghanistan in January, 1980. The United States once again significantly increased military and nuclear spending, while the Soviets were unable to respond and continued to pursue the détente.
Document 2: Soviet Union: The Soviet Union suffered greatly in the war, losing around 27 million people. Approximately 2.8 million Soviet POWs died of starvation, mistreatment, or executions in just eight months of 1941 -- 42. During the war, the Soviet Union together with the United States, the United Kingdom and China were considered as the Big Four of Allied powers in World War II and later became the Four Policemen which was the foundation of the United Nations Security Council. It emerged as a superpower in the post-war period. Once denied diplomatic recognition by the Western world, the Soviet Union had official relations with practically every nation by the late 1940s. A member of the United Nations at its foundation in 1945, the Soviet Union became one of the five permanent members of the United Nations Security Council, which gave it the right to veto any of its resolutions.
Document 3: The Secret Servant (Lyall novel): The Secret Servant is a third person narrative novel by English author Gavin Lyall, first published in 1980, and the first of his series of novels with the character “Harry Maxim” as the protagonist.
Document 4: History of Russia: U.S.–Soviet relations deteriorated following the beginning of the nine-year Soviet–Afghan War in 1979 and the 1980 election of Ronald Reagan, a staunch anti-communist, but improved as the communist bloc started to unravel in the late 1980s. With the collapse of the Soviet Union in 1991, Russia lost the superpower status that it had won in the Second World War.
Document 5: No. 1 of the Secret Service: No. 1 of the Secret Service is a 1977 imitation James Bond film starring Nicky Henson as British secret agent Charles Bind. It was directed and written by Lindsay Shonteff and produced by his wife Elizabeth Gray. The film had the working title of 008 of the Secret Service. It was released on VHS under the title Her Majesty’s Top Gun.
Document 6: Secrets of the French Police: Secrets of the French Police is a 1932 American Pre-Code crime film directed by A. Edward Sutherland and starring Gwili Andre, Gregory Ratoff, and Frank Morgan.
Document 7: Secret Service (TV series): Secret Service is an American action drama television series, created by Gilbert M. Shilton and George Mendeluk, which premiered on NBC on August 16, 1992 and ended on November 17, 1993. The show was a re-enactment of real Secret Service cases. It aired 21 episodes. It was hosted by Steven Ford, the youngest son of former United States President Gerald Ford and First Lady Betty Ford.
Document 8: Cold War: By the 1970s, both sides had become interested in making accommodations in order to create a more stable and predictable international system, inaugurating a period of détente that saw Strategic Arms Limitation Talks and the US opening relations with the People's Republic of China as a strategic counterweight to the Soviet Union. Détente collapsed at the end of the decade with the beginning of the Soviet -- Afghan War in 1979. The early 1980s were another period of elevated tension, with the Soviet downing of Korean Air Lines Flight 007 (1983), and the ``Able Archer ''NATO military exercises (1983). The United States increased diplomatic, military, and economic pressures on the Soviet Union, at a time when the communist state was already suffering from economic stagnation. In the mid-1980s, the new Soviet leader Mikhail Gorbachev introduced the liberalizing reforms of perestroika (`` reorganization'', 1987) and glasnost (``openness '', c. 1985) and ended Soviet involvement in Afghanistan. Pressures for national independence grew stronger in Eastern Europe, especially Poland. Gorbachev meanwhile refused to use Soviet troops to bolster the faltering Warsaw Pact regimes as had occurred in the past. The result in 1989 was a wave of revolutions that peacefully (with the exception of the Romanian Revolution) overthrew all of the communist regimes of Central and Eastern Europe. The Communist Party of the Soviet Union itself lost control and was banned following an abortive coup attempt in August 1991. This in turn led to the formal dissolution of the USSR in December 1991 and the collapse of communist regimes in other countries such as Mongolia, Cambodia and South Yemen. The United States remained as the world's only superpower.
Document 9: Soviet Union: With the rise of strong nationalist and separatist movements inside the union republics, Gorbachev tried to avert a dissolution of the Soviet Union in the post-Cold War era. A March 1991 referendum, boycotted by some republics, resulted in a majority of participating citizens voting in favor of preserving the union as a renewed federation. Gorbachev's power was greatly diminished after Russian President Boris Yeltsin played a high - profile role in facing down an abortive August 1991 coup d'état attempted by Communist Party hardliners. On 25 December 1991, Gorbachev resigned and the remaining twelve constituent republics emerged as independent post-Soviet states. The Russian Federation -- formerly the Russian SFSR -- assumed the Soviet Union's rights and obligations and is recognized as the successor state of the Soviet Union. In summing up the international ramifications of these events, Vladislav Zubok stated: ``The collapse of the Soviet empire was an event of epochal geopolitical, military, ideological and economic significance. ''
Document 10: Soviet–Afghan War: The Soviet -- Afghan War lasted over nine years, from December 1979 to February 1989. Insurgent groups known as the mujahideen fought against the Soviet Army and the Democratic Republic of Afghanistan government, mostly in the country's rural countryside. The mujahideen groups were backed by the United States and Pakistan, making it a Cold War proxy war. Between 562,000 and 2,000,000 civilians were killed and millions of Afghans fled the country as refugees, mostly to Pakistan and Iran.
Document 11: Russian Soviet Federative Socialist Republic: In 1964, Nikita Khrushchev was removed from his position of power and replaced with Leonid Brezhnev. Under his rule, the Russian SFSR and the rest of the Soviet Union went through an era of stagnation. Even after he died in 1982, the era didn’t end until Mikhail Gorbachev took power and introduced liberal reforms in Soviet society.
Document 12: Soviet Union–United States relations: The relations between the United States of America and the Union of Soviet Socialist Republics (1922 -- 1991) succeeded the previous relations from 1776 to 1917 and predate today's relations that began in 1992. Full diplomatic relations between the two countries were established late due to mutual hostility. During World War II, the two countries were briefly allies. At the end of the war, the first signs of post-war mistrust and hostility began to appear between the two countries, escalating into the Cold War; a period of tense hostile relations, with periods of détente.
Document 13: Secret Service of the Air: Secret Service of the Air (also known as Murder Plane) is a 1939 American adventure film directed by Noel M. Smith and starring Ronald Reagan. This film was the first in Warner Bros.' Secret Service series. The series consisted of four films, all starring Ronald Reagan as Lieutenant "Brass" Bancroft of the U.S. Secret Service and Eddie Foy, Jr. as his sidekick "Gabby." The 1940 film "Murder in the Air" was the last in the series. Reagan was just starting out his film career and commented later that during that period, he was a B movie "Errol Flynn".
Document 14: Radar Secret Service: Radar Secret Service is a 1950 action film starring John Howard, produced by Barney A. Sarecky and directed by Sam Newfield. The film was featured on the American television show "Mystery Science Theater 3000".
Document 15: Code of the Secret Service: Code of the Secret Service is a 1939 film directed by Noel M. Smith and starring Ronald Reagan. It is the second of four films in the U.S. Secret Service Agent Brass Bancroft series, having been preceded by "Secret Service of the Air" (1939) and followed by "Smashing the Money Ring" (1939) and "Murder in the Air" (1940).
ground_truth: 1980
sub_queries: Code of the Secret Service >> cast member Answer: Ronald Reagan
When was Ronald Reagan elected? Answer: 1980