Question: On what date did the country containing the Samarahan division gain independence from the British?

full_context: Document 1: Malaysia: Malaysia has its origins in the Malay kingdoms which, from the 18th century, became subject to the British Empire, along with the British Straits Settlements protectorate. Peninsular Malaysia was unified as the Malayan Union in 1946. Malaya was restructured as the Federation of Malaya in 1948, and achieved independence on 31 August 1957. Malaya united with North Borneo, Sarawak, and Singapore on 16 September 1963 to become Malaysia. In 1965, Singapore was expelled from the federation.The country is multi-ethnic and multi-cultural, which plays a large role in its politics. About half the population is ethnically Malay, with large minorities of Malaysian Chinese, Malaysian Indians, and indigenous peoples. While recognising Islam as the country's established religion, the constitution grants freedom of religion to non-Muslims. The government system is closely modelled on the Westminster parliamentary system and the legal system is based on common law. The head of state is the king, known as the Yang di-Pertuan Agong. He is an elected monarch chosen from the hereditary rulers of the nine Malay states every five years. The head of government is the Prime Minister. The country's official language is Malaysian, a standard form of the Malay language. English remains an active second language.
Document 2: Jalan Batu Kawa–Tondong: Jalan Batu Kawa–Tondong is a major highway in Kuching Division in Sarawak, Malaysia. This highway is also part of the Pan Borneo Highway network.
Document 3: Kuching Bypass: Kuching Bypass, consisting of Jalan Datu Bandar Mustapha, Jalan Tun Jugah and Jalan Tun Razak, Federal Route 801, is a major highway in Kuching city, Sarawak, Malaysia
Document 4: History of Malaysia: The Malayan Emergency as it was known, lasted from 1948 to 1960, and involved a long anti-insurgency campaign by Commonwealth troops in Malaya. The British strategy, which proved ultimately successful, was to isolate the MCP from its support base by a combination of economic and political concessions to the Chinese and the resettlement of Chinese squatters into “New Villages” in “white areas” free of MCP influence. In December 1948, 24 villagers were executed by British troops. From 1949 the MCP campaign lost momentum and the number of recruits fell sharply. Although the MCP succeeded in assassinating the British High Commissioner, Sir Henry Gurney, in October 1951, this turn to terrorist tactics alienated many moderate Chinese from the Party. The arrival of Lt.-Gen Sir Gerald Templer as British commander in 1952 was the beginning of the end of the Emergency. Templer invented the techniques of counter-insurgency warfare in Malaya and applied them ruthlessly. Although the insurgency was defeated Commonwealth troops remained with the backdrop of the Cold War. Against this backdrop, independence for the Federation within the Commonwealth was granted on 31 August 1957, with Tunku Abdul Rahman as the first prime minister.
Document 5: Miri–Baram Highway: Miri–Baram Highway, Federal Route 1-82, also known as Jalan Kuala Baram-Sungai Tujuh, is a major highway in Miri Division, Sarawak, Malaysia. This highway is part of the Pan Borneo Highway AH 150.
Document 6: Jalan Semambu: Jalan Semambu, Federal Route 3486 (formerly Pahang and Terengganu state route C15 or T15), is an industrial federal road in Pahang and Terengganu state, Malaysia.
Document 7: 2018 Malaysian general election: This marked a historic defeat for the ruling Barisan Nasional coalition, which had been the governing party of Malaysia and its predecessor state, Malaya, since the country's independence in 1957. This makes Mahathir Mohamad the next Prime Minister of Malaysia and, at 92 years old, the oldest head of government in the world, although he has indicated he would give way within a few years to jailed opposition leader Anwar Ibrahim after seeking a royal pardon for him.
Document 8: History of Singapore: During World War 2, Singapore was conquered and occupied by the Japanese Empire from 1942 to 1945. When the war ended, Singapore reverted to British control, with increasing levels of self-government being granted, culminating in Singapore's merger with the Federation of Malaya to form Malaysia in 1963. However, social unrest and disputes between Singapore's ruling People's Action Party and Malaysia's Alliance Party resulted in Singapore's expulsion from Malaysia. Singapore became an independent republic on 9 August 1965.
Document 9: Jalan Serian–Tebedu: Jalan Serian–Tebedu, Federal Route 21, is a major highway in Serian Division, Sarawak, Malaysia. It is a dual lane road that is maintained by PPES Works Sdn. Bhd., a subsidiary of CMS Road. It connects Serian roundabout to Tebedu. Among other major destinations branched out from this route are Riih, Tebakang and Mongkos. It is a major route to West Kalimantan, Indonesia and frequently being used for people from both Malaysia and Indonesia to travel crossing the border. Along this road has many scattered houses, privately owned orchards, churches, primary school and chapels. It branched out to many small villages such as Kg. Kakai and Kg. Tian. GIATMARA institution of Serian district is also located here.
Document 10: National Monument (Malaysia): The National Monument is a sculpture that commemorates those who died in Malaysia's struggle for freedom, principally against the Japanese occupation during World War II and the Malayan Emergency, which lasted from 1948 until 1960. It is located in the Federal capital, Kuala Lumpur. The Malaysian Houses of Parliament are situated near the monument.
Document 11: Jalan Syed Putra: Jalan Syed Putra (formerly Lornie Drive), Federal Route 2 is a major highway in Kuala Lumpur, Malaysia. It was named after Almarhum Tuanku Syed Putra ibni Almarhum Syed Hassan Jamalullail of Perlis, the third Yang di-Pertuan Agong, which used to reside at Istana Negara which lies at one end of the highway.
Document 12: Jalan Seri Kembangan: Jalan Seri Kembangan, or Jalan Putra Permai and Jalan Besar, Federal Route 3215 (formerly Selangor state route B16), is a major highway in Klang Valley region, Selangor, Malaysia. This 9.4 km (5.8 miles) toll-free highway connects Serdang interchange of the Damansara–Puchong Expressway in the southwest to Seri Kembangan interchange of the Besraya Expressway in the northeast. Jalan Seri Kembangan connects with three major tolled expressways: Damansara–Puchong Expressway, Maju Expressway and Besraya Expressway.
Document 13: British Empire: Following the defeat of Japan in the Second World War, anti-Japanese resistance movements in Malaya turned their attention towards the British, who had moved to quickly retake control of the colony, valuing it as a source of rubber and tin. The fact that the guerrillas were primarily Malayan-Chinese Communists meant that the British attempt to quell the uprising was supported by the Muslim Malay majority, on the understanding that once the insurgency had been quelled, independence would be granted. The Malayan Emergency, as it was called, began in 1948 and lasted until 1960, but by 1957, Britain felt confident enough to grant independence to the Federation of Malaya within the Commonwealth. In 1963, the 11 states of the federation together with Singapore, Sarawak and North Borneo joined to form Malaysia, but in 1965 Chinese-majority Singapore was expelled from the union following tensions between the Malay and Chinese populations. Brunei, which had been a British protectorate since 1888, declined to join the union and maintained its status until independence in 1984.
Document 14: Private school: After Malaysia's independence in 1957, the government instructed all schools to surrender their properties and be assimilated into the National School system. This caused an uproar among the Chinese and a compromise was achieved in that the schools would instead become "National Type" schools. Under such a system, the government is only in charge of the school curriculum and teaching personnel while the lands still belonged to the schools. While Chinese primary schools were allowed to retain Chinese as the medium of instruction, Chinese secondary schools are required to change into English-medium schools. Over 60 schools converted to become National Type schools.
Document 15: History of Malaysia: Japanese invasion during World War II ended British domination in Malaysia. The subsequent occupation of Malaya, North Borneo and Sarawak from 1942 to 1945 unleashed nationalism. In the Peninsula, the Malayan Communist Party took up arms against the British. A tough military response was needed to end the insurgency and bring about the establishment of an independent, multi-racial Federation of Malaya on 31 August 1957. On 22 July 1963, Sarawak was granted a self - governance. The following month on 31 August 1963, both North Borneo and Singapore were also granted self - governance and all states began to formed Malaysia on 16 September 1963. Approximately two years later, the Malaysian parliament passed a bill without the consent of signatory of Malaysia Agreement 1963 to separate Singapore from the Federation. A confrontation with Indonesia occurred in the early - 1960s. Race riots in 1969 led to the imposition of emergency rule, and a curtailment of political life and civil liberties which has never been fully reversed. Since 1970 the ``Barisan Nasional coalition ''headed by United Malays National Organisation (UMNO) has governed Malaysia until the
ground_truth: 31 August 1957
sub_queries: Samarahan >> country Answer: Malaysia
when did Malaysia gain independence from great britain Answer: 31 August 1957