paragraph_text: In 1977, Gaddafi dissolved the Republic and created a new socialist state, the Jamahiriya ("state of the masses"). Officially adopting a symbolic role in governance, he retained power as military commander-in-chief and head of the Revolutionary Committees responsible for policing and suppressing opponents. Overseeing unsuccessful border conflicts with Egypt and Chad, Gaddafi's support for foreign militants and alleged responsibility for the Lockerbie bombing led to Libya's label of "international pariah". A particularly hostile relationship developed with the United States and United Kingdom, resulting in the 1986 U.S. bombing of Libya and United Nations-imposed economic sanctions. Rejecting his earlier ideological commitments, from 1999 Gaddafi encouraged economic privatization and sought rapprochement with Western nations, also embracing Pan-Africanism and helping to establish the African Union. Amid the Arab Spring, in 2011 an anti-Gaddafist uprising led by the National Transitional Council (NTC) broke out, resulting in the Libyan Civil War. NATO intervened militarily on the side of the NTC, bringing about the government's downfall. Retreating to Sirte, Gaddafi was captured and killed by NTC militants.

paragraph_text: The Jamahiriya's radical direction earned the government many enemies. In February 1978, Gaddafi discovered that his head of military intelligence was plotting to kill him, and began to increasingly entrust security to his Qaddadfa tribe. Many who had seen their wealth and property confiscated turned against the administration, and a number of western-funded opposition groups were founded by exiles. Most prominent was the National Front for the Salvation of Libya (NFSL), founded in 1981 by Mohammed Magariaf, which orchestrated militant attacks against Libya's government, while another, al-Borkan, began killing Libyan diplomats abroad. Following Gaddafi's command to kill these "stray dogs", under Colonel Younis Bilgasim's leadership, the Revolutionary Committees set up overseas branches to suppress counter-revolutionary activity, assassinating various dissidents. Although nearby nations like Syria also used hit squads, Gaddafi was unusual in publicly bragging about his administration's use of them; in June 1980, he ordered all dissidents to return home or be "liquidated wherever you are."

paragraph_text: In 1989, Gaddafi was overjoyed by the foundation of the Arab Maghreb Union, uniting Libya in an economic pact with Mauritania, Morocco, Tunisia and Algeria, viewing it as beginnings of a new Pan-Arab union. Meanwhile, Libya stepped up its support for anti-western militants such as the Provisional IRA, and in 1988, Pan Am Flight 103 was blown up over Lockerbie in Scotland, killing 243 passengers and 16 crew members, plus 11 people on the ground. British police investigations identified two Libyans – Abdelbaset al-Megrahi and Lamin Khalifah Fhimah – as the chief suspects, and in November 1991 issued a declaration demanding that Libya hand them over. When Gaddafi refused, citing the Montreal Convention, the United Nations (UN) imposed Resolution 748 in March 1992, initiating economic sanctions against Libya which had deep repercussions for the country's economy. The country suffered an estimated $900 million financial loss as a result. Further problems arose with the west when in January 1989, two Libyan warplanes were shot down by the U.S. off the Libyan coast. Many African states opposed the UN sanctions, with Mandela criticising them on a visit to Gaddafi in October 1997, when he praised Libya for its work in fighting apartheid and awarded Gaddafi the Order of Good Hope. They would only be suspended in 1998 when Libya agreed to allow the extradition of the suspects to the Scottish Court in the Netherlands, in a process overseen by Mandela.

paragraph_text: After the U.S. accused Libya of orchestrating the 1986 Berlin discotheque bombing, in which two American soldiers died, Reagan decided to retaliate militarily. The Central Intelligence Agency were critical of the move, believing that Syria were a greater threat and that an attack would strengthen Gaddafi's reputation; however Libya was recognised as a "soft target." Reagan was supported by the U.K. but opposed by other European allies, who argued that it would contravene international law. In Operation El Dorado Canyon, orchestrated on 15 April 1986, U.S. military planes launched a series of air-strikes on Libya, bombing military installations in various parts of the country, killing around 100 Libyans, including several civilians. One of the targets had been Gaddafi's home. Himself unharmed, two of Gaddafi's sons were injured, and he claimed that his four-year-old adopted daughter Hanna was killed, although her existence has since been questioned.  In the immediate aftermath, Gaddafi retreated to the desert to meditate, while there were sporadic clashes between Gaddafists and army officers who wanted to overthrow the government. Although the U.S. was condemned internationally, Reagan received a popularity boost at home. Publicly lambasting U.S. imperialism, Gaddafi's reputation as an anti-imperialist was strengthened both domestically and across the Arab world, and in June 1986, he ordered the names of the month to be changed in Libya.

paragraph_text: In 1968, Libya became signatory of Nuclear Non-Proliferation Treaty (NPT), ratified the treaty in 1975, and concluded a safeguards agreement in 1980. Despite its commitment to NPT, there are reports indicating that Muammar Gaddafi of Libya either made unsuccessful attempts to build or entered in an agreement to purchase a nuclear weapon from nuclear - armed nations. In the 1970s -- 80s, Gaddafi made numerous attempts to accelerate and push forward his ambitions for an active nuclear weapons program, using the nuclear black market sources. However, after the end of the Cold War in 1991, Gaddafi sought to resolve its nuclear crises with the United States aiming to uplift the sanctions against Libya, finally agreeing to authorize rolling back Libya's weapons of mass destruction program on December 2003.

paragraph_text: Ahmed Santos (born Hilarion del Rosario Santos III) is a Filipino who converted to Islam while working in Riyadh, Saudi Arabia in 1991. Santos was captured by Military officials for being involved in organizing and planning terrorist activities, including preparation of bombs. He is the founder of the Rajah Solaiman Movement.

paragraph_text: On 16 April 1973, Gaddafi proclaimed the start of a "Popular Revolution" in a Zuwarah speech. He initiated this with a 5-point plan, the first point of which dissolved all existing laws, to be replaced by revolutionary enactments. The second point proclaimed that all opponents of the revolution had to be removed, while the third initiated an administrative revolution that Gaddafi proclaimed would remove all traces of bureaucracy and the bourgeoisie. The fourth point announced that the population must form People's Committees and be armed to defend the revolution, while the fifth proclaimed the beginning of a cultural revolution to expunge Libya of "poisonous" foreign influences. He began to lecture on this new phase of the revolution in Libya, Egypt, and France.

paragraph_text: Phan Xích Long, also known as Hồng Long, born Phan Phát Sanh (1893–1916), was a 20th-century Vietnamese mystic and geomancer who claimed to be the Emperor of Vietnam. He attempted to exploit religion as a cover for his own political ambitions, having started his own ostensibly religious organisation. Claiming to be a descendant of Emperor Hàm Nghi, Long staged a ceremony to crown himself, before trying to seize power in 1913 by launching an armed uprising against the colonial rule of French Indochina. His supporters launched an attack on Saigon in March 1913, drinking potions that purportedly made them invisible and planting bombs at several locations. The insurrection against the French colonial administration failed when none of the bombs detonated and the supposedly invisible supporters were apprehended.

paragraph_text: The United States accused Manuel Noriega's government in Panama of being a "narcokleptocracy", a corrupt government profiting on illegal drug trade. Later the U.S. invaded Panama and captured Noriega.

paragraph_text: From childhood, Gaddafi was aware of the involvement of European colonialists in Libya; his nation was occupied by Italy, and during the North African Campaign of World War II it witnessed conflict between Italian and British troops. According to later claims, Gaddafi's paternal grandfather, Abdessalam Bouminyar, was killed by the Italian Army during the Italian invasion of 1911. At World War II's end in 1945, Libya was occupied by British and French forces. Although Britain and France intended on dividing the nation between their empires, the General Assembly of the United Nations (UN) declared that the country be granted political independence. In 1951, the UN created the United Kingdom of Libya, a federal state under the leadership of a pro-western monarch, Idris, who banned political parties and established an absolute monarchy.

paragraph_text: The Islamic Museum of Tripoli is a proposed museum of Islamic culture that was built under the support and patronage of Saif al-Islam Gaddafi in Tripoli, Libya.

paragraph_text: The early and mid-1980s saw economic trouble for Libya; from 1982 to 1986, the country's annual oil revenues dropped from $21 billion to $5.4 billion. Focusing on irrigation projects, 1983 saw construction start on "Gaddafi's Pet Project", the Great Man-Made River; although designed to be finished by the end of the decade, it remained incomplete at the start of the 21st century. Military spending increased, while other administrative budgets were cut back. Libya had long supported the FROLINAT militia in neighbouring Chad, and in December 1980, re-invaded Chad at the request of the Frolinat-controlled GUNT government to aid in the civil war; in January 1981, Gaddafi suggested a political merger. The Organisation of African Unity (OAU) rejected this, and called for a Libyan withdrawal, which came about in November 1981. The civil war resumed, and so Libya sent troops back in, clashing with French forces who supported the southern Chadian forces. Many African nations had tired of Libya's policies of interference in foreign affairs; by 1980, nine African states had cut off diplomatic relations with Libya, while in 1982 the OAU cancelled its scheduled conference in Tripoli in order to prevent Gaddafi gaining chairmanship. Proposing political unity with Morocco, in August 1984, Gaddafi and Moroccan monarch Hassan II signed the Oujda Treaty, forming the Arab-African Union; such a union was considered surprising due to the strong political differences and longstanding enmity that existed between the two governments. Relations remained strained, particularly due to Morocco's friendly relations with the U.S. and Israel; in August 1986, Hassan abolished the union. Domestic threats continued to plague Gaddafi; in May 1984, his Bab al-Azizia home was unsuccessfully attacked by a joint NFSL–Muslim Brotherhood militia, and in the aftermath 5000 dissidents were arrested.

paragraph_text: On 2 March 1977 the General People's Congress adopted the "Declaration of the Establishment of the People's Authority" at Gaddafi's behest. Dissolving the Libyan Arab Republic, it was replaced by the Great Socialist People's Libyan Arab Jamahiriya (Arabic: الجماهيرية العربية الليبية الشعبية الاشتراكية‎, al-Jamāhīrīyah al-‘Arabīyah al-Lībīyah ash-Sha‘bīyah al-Ishtirākīyah), a "state of the masses" conceptualized by Gaddafi. Officially, the Jamahiriya was a direct democracy in which the people ruled themselves through the 187 Basic People's Congresses, where all adult Libyans participated and voted on national decisions. These then sent members to the annual General People's Congress, which was broadcast live on television. In principle, the People's Congresses were Libya's highest authority, with major decisions proposed by government officials or with Gaddafi himself requiring the consent of the People's Congresses.

paragraph_text: Portugal was the leading country in the European exploration of the world in the 15th century. The Treaty of Tordesillas in 1494 divided the Earth outside Europe into Castilian and Portuguese global territorial hemispheres for exclusive conquest and colonization. Portugal colonized parts of South America (mostly Brazil), but also made some unsuccessful attempts to colonize North America in present - day Canada.

paragraph_text: Gaddafi was the first consultant to the Management Committee of the General National Maritime Transport Company (GNMTC) of Libya. He was appointed to this position in 2007, upon earning his MBA degree in Shipping Economics and Logistics from Copenhagen Business School.Gaddafi is married to Aline Skaf, a Lebanese Christian former lingerie model, with whom he has three children. Another child, Carthage Hannibal (b. 2 August 2008), was killed in the bombing raid of the family compound on 30 April 2011

paragraph_text: All Saints Church is in Ashgrove Terrace, Lockerbie, Dumfries and Galloway, Scotland. It is a Category B listed building and an active Scottish Episcopal Church in the Diocese of Glasgow and Galloway.

paragraph_text: In 1981, the new US President Ronald Reagan pursued a hard line approach to Libya, erroneously considering it a puppet regime of the Soviet Union. In turn, Gaddafi played up his commercial relationship with the Soviets, visiting Moscow again in April 1981 and 1985, and threatening to join the Warsaw Pact. The Soviets were nevertheless cautious of Gaddafi, seeing him as an unpredictable extremist. Beginning military exercises in the Gulf of Sirte – an area of sea that Libya claimed as a part of its territorial waters – in August 1981 the U.S. shot down two Libyan Su-22 planes monitoring them. Closing down Libya's embassy in Washington, D.C., Reagan advised U.S. companies operating in the country to reduce the number of American personnel stationed there. In March 1982, the U.S. implemented an embargo of Libyan oil, and in January 1986 ordered all U.S. companies to cease operating in the country, although several hundred workers remained. Diplomatic relations also broke down with the U.K., after Libyan diplomats were accused in the shooting death of Yvonne Fletcher, a British policewoman stationed outside their London embassy, in April 1984. In Spring 1986, the U.S. Navy again began performing exercises in the Gulf of Sirte; the Libyan military retaliated, but failed as the U.S. sank several Libyan ships.

paragraph_text: Gaddafi sought to develop closer links in the Maghreb; in January 1974 Libya and Tunisia announced a political union, the Arab Islamic Republic. Although advocated by Gaddafi and Tunisian President Habib Bourguiba, the move was deeply unpopular in Tunisia and soon abandoned. Retaliating, Gaddafi sponsored anti-government militants in Tunisia into the 1980s. Turning his attention to Algeria, in 1975 Libya signed the Hassi Messaoud defence agreement allegedly to counter "Moroccan expansionism", also funding the Polisario Front of Western Sahara in their independence struggle against Morocco. Seeking to diversify Libya's economy, Gaddafi's government began purchasing shares in major European corporations like Fiat as well as buying real estate in Malta and Italy, which would become a valuable source of income during the 1980s oil slump.

paragraph_text: In 1695, the Scottish Parliament granted a charter to the Company of Scotland, which established a settlement in 1698 on the isthmus of Panama. Besieged by neighbouring Spanish colonists of New Granada, and afflicted by malaria, the colony was abandoned two years later. The Darien scheme was a financial disaster for Scotland—a quarter of Scottish capital was lost in the enterprise—and ended Scottish hopes of establishing its own overseas empire. The episode also had major political consequences, persuading the governments of both England and Scotland of the merits of a union of countries, rather than just crowns. This occurred in 1707 with the Treaty of Union, establishing the Kingdom of Great Britain.

paragraph_text: Now with NATO support in the form of air cover, the rebel militia pushed westward, defeating loyalist armies and securing control of the centre of the country. Gaining the support of Amazigh (Berber) communities of the Nafusa Mountains, who had long been persecuted as non-Arabic speakers under Gaddafi, the NTC armies surrounded Gaddafi loyalists in several key areas of western Libya. In August, the rebels seized Zliten and Tripoli, ending the last vestiges of Gaddafist power. On 25 August, the Arab League recognised the NTC to be "the legitimate representative of the Libyan state", on which basis Libya would resume its membership in the League.

Question: When was the country that Noriega ruled colonized by the country where the All Saints Church is located in the place where a terrorist bombing Gaddafi was supposedly involved in?
Answer: 1698