Context_1 : John Major formed the first Major ministry upon the resignation of Margaret Thatcher, after being invited by Queen Elizabeth II to begin a new government. Context_2 : The Fourth Howard Ministry (Liberal–National Coalition) was the 64th ministry of the Government of Australia, and was led by Prime Minister John Howard. It succeeded the Third Howard Ministry upon its swearing in by Governor-General Major-General Michael Jeffery on 22 October 2004 after the 2004 election, and was replaced by the First Rudd Ministry led by Kevin Rudd on 3 December 2007 following the government's defeat at the 2007 election. Context_3 : Sir John Major, {'1': ", '2': ", '3': ", '4': "} (born 29 March 1943) is a British politician who was Prime Minister of the United Kingdom and Leader of the Conservative Party from 1990 to 1997. He served as Foreign Secretary and then Chancellor of the Exchequer in the Thatcher Government from 1989 to 1990, and was the Member of Parliament (MP) for Huntingdon from 1979 until he retired in 2001. Since Margaret Thatcher's death in 2013, he is the oldest living former Prime Minister. Context_4 : The First Howard Ministry (Liberal–National Coalition) was the 61st ministry of the Government of Australia, and was led by Prime Minister John Howard. It succeeded the Second Keating Ministry upon its swearing in by Governor-General Sir William Deane on 11 March 1996 after the 1996 election, and was replaced by the Second Howard Ministry on 21 October 1998 following the 1998 election. Context_5 : Duale Adan Mohamed (Somali: "Ducale Aadan Maxamed" , Arabic: دوالي عدن محمد‎ ‎ ) is a Somali politician. He served as the Minister of Culture and Higher Education of Somalia under Prime Minister Abdiweli Sheikh Ahmed. Duale Adan Mohamed succeeded Maryam Qaasim when her post as Minister for Human Development and Public Services ended on 17 January 2014. The Ministry was split to allow the creation of 6 cabinet positions one of which was the Ministry of Culture and Higher Education. The other 5 cabinet positions are Ministry of Health, Ministry of Youth and Sports, Ministry of Labour and Social Affairs, Ministry of Women and Human Rights, Ministry of Education. On 12 January 2015, Prime Minister Omar Abdirashid Ali Sharmarke announced his new cabinet which merged the Ministry of Culture and Higher Education with the Ministry of Education. Instead this meant that the new Minister of Education (Abdullahi Ahmed Jama) would take on some additional roles. Duale Adan Mohamed was instead appointed the Minister of Youth and Sports. However, he only served 2 weeks when on 17 January 2015, Prime Minister Sharmarke dissolved his newly nominated cabinet due to vehement opposition by legislators, who rejected the reappointment of certain former ministers. On 27 January 2015, Sharmarke appointed a new, smaller 20 minister cabinet of which Duale Adan Mohamed was replaced by Mohamed Omar Arte. Context_6 : The Second Keating Ministry (Labor) was the 60th ministry of the Government of Australia, and was led by Prime Minister Paul Keating. It succeeded the First Keating Ministry upon its swearing in by Governor-General Bill Hayden on 24 March 1993 after the 1993 election, and was replaced by the First Howard Ministry led by John Howard on 11 March 1996 following the Labor government's defeat at the 1996 election. Context_7 : Tony Blair formed the first Blair ministry in May 1997 after being invited by Queen Elizabeth II to form a new government following the resignation of the previous Prime Minister of the United Kingdom, John Major as a result of the Labour Party landslide victory at the 1997 general election. He would serve as the Prime Minister for three successive parliamentary terms until his resignation on 27 June 2007. His Cabinet was reshuffled for each new parliament along with a few minor changes during each term. Context_8 : The First Rudd Ministry (Labor) was the 65th ministry of the Government of Australia, and was led by Prime Minister Kevin Rudd. It succeeded the Fourth Howard Ministry upon its swearing in by Governor-General Major-General Michael Jeffery on 3 December 2007 after the 2007 election, and was replaced by the First Gillard Ministry on 24 June 2010 when the deputy leader, Julia Gillard, became prime minister. Context_9 : The Second Howard Ministry (Liberal–National Coalition) was the 62nd ministry of the Government of Australia, and was led by Prime Minister John Howard. It succeeded the First Howard Ministry upon its swearing in by Governor-General Sir William Deane on 21 October 1998 after the 1998 election, and was replaced by the Third Howard Ministry on 26 November 2001 following the 2001 election. Context_10 : The Telavi Ministry was the 13th ministry of the Government of Tuvalu, led by Prime Minister Willy Telavi. It succeeded the Second Toafa Ministry upon its swearing in by Governor-General Iakoba Italeli on 24 December 2010 after a vote of no confidence in former Prime Minister Maatia Toafa. Following Telavi's removal as prime minister, his ministry was subsequently brought down by the opposition's vote of no confidence and was succeeded by the Sopoaga Ministry, led by Enele Sopoaga, on 5 August 2013. fact_1 : John Major formed the first Major ministry upon the resignation of Margaret Thatcher, after being invited by Queen Elizabeth II to begin a new government. fact_2 : Sir John Major, {'1': ", '2': ", '3': ", '4': "} (born 29 March 1943) is a British politician who was Prime Minister of the United Kingdom and Leader of the Conservative Party from 1990 to 1997. Question:  Sir John Major, the British politician who was Prime Minister of the UK, formed the first Major ministry upon the resignation of who?
Output: Margaret Thatcher