Question: Why did the country that deployed its army into Afghanistan in 1979 complain about the US's action to the body that imposed sanctions against Iran for their nuclear program?

full_context: Document 1: Iran: The administration continues to follow the market reform plans of the previous one and indicated that it will diversify Iran's oil-reliant economy. Iran has also developed a biotechnology, nanotechnology, and pharmaceuticals industry. However, nationalized industries such as the bonyads have often been managed badly, making them ineffective and uncompetitive with years. Currently, the government is trying to privatize these industries, and, despite successes, there are still several problems to be overcome, such as the lagging corruption in the public sector and lack of competitiveness. In 2010, Iran was ranked 69, out of 139 nations, in the Global Competitiveness Report.
Document 2: North Korea and weapons of mass destruction: North Korea has a military nuclear weapons program and also has a significant quantity of chemical and biological weapons. As of 2003, North Korea is no longer a party to the Treaty on the Non-Proliferation of Nuclear Weapons (NPT). The country has come under sanctions after conducting a number of nuclear tests, beginning in 2006.
Document 3: Korean War: By August, the KPA had pushed back the ROK Army and the Eighth United States Army to the vicinity of Pusan in southeast Korea. In their southward advance, the KPA purged the Republic of Korea's intelligentsia by killing civil servants and intellectuals. On 20 August, General MacArthur warned North Korean leader Kim Il-sung that he was responsible for the KPA's atrocities. By September, the UN Command controlled the Pusan perimeter, enclosing about 10% of Korea, in a line partially defined by the Nakdong River.
Document 4: 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 5: Israel and weapons of mass destruction: Israel is widely believed to possess weapons of mass destruction, and to be one of four nuclear-armed countries not recognized as a Nuclear Weapons State by the Non-Proliferation Treaty (NPT). The US Congress Office of Technology Assessment has recorded Israel as a country generally reported as having undeclared chemical warfare capabilities, and an offensive biological warfare program. Officially, Israel neither confirms nor denies possessing nuclear weapons.
Document 6: Islamism: In 1979, the Soviet Union deployed its 40th Army into Afghanistan, attempting to suppress an Islamic rebellion against an allied Marxist regime in the Afghan Civil War. The conflict, pitting indigenous impoverished Muslims (mujahideen) against an anti-religious superpower, galvanized thousands of Muslims around the world to send aid and sometimes to go themselves to fight for their faith. Leading this pan-Islamic effort was Palestinian sheikh Abdullah Yusuf Azzam. While the military effectiveness of these "Afghan Arabs" was marginal, an estimated 16,000 to 35,000 Muslim volunteers came from around the world came to fight in Afghanistan.
Document 7: Iran: Economic sanctions against Iran, such as the embargo against Iranian crude oil, have affected the economy. Sanctions have led to a steep fall in the value of the rial, and as of April 2013 one US dollar is worth 36,000 rial, compared with 16,000 in early 2012. Following a successful implementation of the 2015 nuclear and sanctions relief deal, the resulting benefits might not be distributed evenly across the Iranian economy as political elites such as the Islamic Revolutionary Guard Corps have garnered more resources and economic interests.
Document 8: Iran: Since 2005, Iran's nuclear program has become the subject of contention with the international community following earlier quotes of Iranian leadership favoring the use of an atomic bomb against Iran's enemies and in particular Israel. Many countries have expressed concern that Iran's nuclear program could divert civilian nuclear technology into a weapons program. This has led the UN Security Council to impose sanctions against Iran which had further isolated Iran politically and economically from the rest of the global community. In 2009, the US Director of National Intelligence said that Iran, if choosing to, would not be able to develop a nuclear weapon until 2013.
Document 9: Islamism: Another factor in the early 1990s that worked to radicalize the Islamist movement was the Gulf War, which brought several hundred thousand US and allied non-Muslim military personnel to Saudi Arabian soil to put an end to Saddam Hussein's occupation of Kuwait. Prior to 1990 Saudi Arabia played an important role in restraining the many Islamist groups that received its aid. But when Saddam, secularist and Ba'athist dictator of neighboring Iraq, attacked Saudi Arabia (his enemy in the war), western troops came to protect the Saudi monarchy. Islamists accused the Saudi regime of being a puppet of the west.
Document 10: 1973 oil crisis: The USSR's invasion of Afghanistan was only one sign of insecurity in the region, also marked by increased American weapons sales, technology, and outright military presence. Saudi Arabia and Iran became increasingly dependent on American security assurances to manage both external and internal threats, including increased military competition between them over increased oil revenues. Both states were competing for preeminence in the Persian Gulf and using increased revenues to fund expanded militaries. By 1979, Saudi arms purchases from the US exceeded five times Israel's. Another motive for the large scale purchase of arms from the US by Saudi Arabia was the failure of the Shah during January 1979 to maintain control of Iran, a non-Arabic but largely Shiite Muslim nation, which fell to a theocratic Islamist government under the Ayatollah Ruhollah Khomeini in the wake of the 1979 Iranian Revolution. Saudi Arabia, on the other hand, is an Arab, largely Sunni Muslim nation headed by a near absolutist monarchy. In the wake of the Iranian revolution the Saudis were forced to deal with the prospect of internal destabilization via the radicalism of Islamism, a reality which would quickly be revealed in the seizure of the Grand Mosque in Mecca by Wahhabi extremists during November 1979 and a Shiite revolt in the oil rich Al-Hasa region of Saudi Arabia in December of the same year. In November 2010, Wikileaks leaked confidential diplomatic cables pertaining to the United States and its allies which revealed that the late Saudi King Abdullah urged the United States to attack Iran in order to destroy its potential nuclear weapons program, describing Iran as "a snake whose head should be cut off without any procrastination."
Document 11: Korean War: Meanwhile, U.S. garrisons in Japan continually dispatched soldiers and matériel to reinforce defenders in the Pusan Perimeter. Tank battalions deployed to Korea directly from the U.S. mainland from the port of San Francisco to the port of Pusan, the largest Korean port. By late August, the Pusan Perimeter had some 500 medium tanks battle-ready. In early September 1950, ROK Army and UN Command forces outnumbered the KPA 180,000 to 100,000 soldiers. The UN forces, once prepared, counterattacked and broke out of the Pusan Perimeter.
Document 12: United States in the Korean War: The first battle the Americans entered in the Korean War was the Battle of Osan, where about four hundred strong landed in Pusan airport on the first of July. The American troops were sent off to Taejon the next morning where Major General John H. Church the head of U.S. field headquarters was confident in the US troop's strengths to push back the North Koreans. On July fifth the troops were finally put to the test when North Korean tanks crept towards Osan. The four hundred infantryman of the U.S. also called Task Force Smith opened fire on the North Koreans at 8: 16 am. Only four of the North Korean tanks were destroyed and twenty - nine kept moving forward breaking the US line. At the end of the battle only two more North Korean Tanks and two regiments of North Korean infantry were destroyed. The US had lost the battle, revealing that the mere sight of US troops would not reverse the military balance in Korea. By early August, the North Korean troops had pushed back the US and South Korean troops all the way to Naktong River, which is located about thirty miles from Pusan. The two weeks of fighting following this resulted in the most casualties of US troops than any other equivalent period of this war. However, during this time the US pushed supplies and personnel to Korea and by the end of July South Koreans and US troops outnumbered the North Koreans, although the North had pushed back the US and South by an amazing amount the North had suffered over fifty thousand casualties. Also because North Koreas supply lines were so lengthy and with the US in control of the water and air replenishing there losses were slow.
Document 13: Korean War: On 25 November at the Korean western front, the PVA 13th Army Group attacked and overran the ROK II Corps at the Battle of the Ch'ongch'on River, and then decimated the US 2nd Infantry Division on the UN forces' right flank. The UN Command retreated; the U.S. Eighth Army's retreat (the longest in US Army history) was made possible because of the Turkish Brigade's successful, but very costly, rear-guard delaying action near Kunuri that slowed the PVA attack for two days (27–29 November). On 27 November at the Korean eastern front, a U.S. 7th Infantry Division Regimental Combat Team (3,000 soldiers) and the U.S. 1st Marine Division (12,000–15,000 marines) were unprepared for the PVA 9th Army Group's three-pronged encirclement tactics at the Battle of Chosin Reservoir, but they managed to escape under Air Force and X Corps support fire—albeit with some 15,000 collective casualties.
Document 14: Islamism: In Afghanistan, the mujahideen's victory against the Soviet Union in the 1980s did not lead to justice and prosperity, due to a vicious and destructive civil war between political and tribal warlords, making Afghanistan one of the poorest countries on earth. In 1992, the Democratic Republic of Afghanistan ruled by communist forces collapsed, and democratic Islamist elements of mujahdeen founded the Islamic State of Afghanistan. In 1996, a more conservative and anti-democratic Islamist movement known as the Taliban rose to power, defeated most of the warlords and took over roughly 80% of Afghanistan.
Document 15: Korean War: In the resulting Battle of Pusan Perimeter (August–September 1950), the U.S. Army withstood KPA attacks meant to capture the city at the Naktong Bulge, P'ohang-dong, and Taegu. The United States Air Force (USAF) interrupted KPA logistics with 40 daily ground support sorties that destroyed 32 bridges, halting most daytime road and rail traffic. KPA forces were forced to hide in tunnels by day and move only at night. To deny matériel to the KPA, the USAF destroyed logistics depots, petroleum refineries, and harbors, while the U.S. Navy air forces attacked transport hubs. Consequently, the over-extended KPA could not be supplied throughout the south. On 27 August, 67th Fighter Squadron aircraft mistakenly attacked facilities in Chinese territory and the Soviet Union called the UN Security Council's attention to China's complaint about the incident. The US proposed that a commission of India and Sweden determine what the US should pay in compensation but the Soviets vetoed the US proposal.
ground_truth: aircraft mistakenly attacked facilities in Chinese territory
sub_queries: Who deployed its army into Afghanistan in 1979? Answer: the Soviet Union
Who imposed sanctions against Iran as a result of Iran's nuclear program? Answer: UN Security Council
Why did the Soviet Union complain about the action of the US to #2 ? Answer: aircraft mistakenly attacked facilities in Chinese territory