Question: How do you become a justice of pace in the territory compared with Gibraltar?

full_context: Document 1: Separation of powers under the United States Constitution: Executive power is vested, with exceptions and qualifications, in the President. By law (Section 2.) the president becomes the Commander in Chief of the Army and Navy, Militia of several states when called into service, has power to make treaties and appointments to office "with the Advice and Consent of the Senate," receive Ambassadors and Public Ministers, and "take care that the laws be faithfully executed" (Section 3.) By using these words, the Constitution does not require the president to personally enforce the law; rather, officers subordinate to the president may perform such duties. The Constitution empowers the president to ensure the faithful execution of the laws made by Congress and approved by the President. Congress may itself terminate such appointments, by impeachment, and restrict the president. Bodies such as the War Claims Commission, the Interstate Commerce Commission and the Federal Trade Commission—all quasi-judicial—often have direct Congressional oversight.
Document 2: Modern history: On December 7, 1941, Japan attacked the United States at Pearl Harbor, bringing it too into the war on the Allied side. China also joined the Allies, as eventually did most of the rest of the world. China was in turmoil at the time, and attacked Japanese armies through guerilla-type warfare. By the beginning of 1942, the major combatants were aligned as follows: the British Commonwealth, the United States, and the Soviet Union were fighting Germany and Italy; and the British Commonwealth, China, and the United States were fighting Japan. The United Kingdom, the United States, the Soviet Union and China were referred as a "trusteeship of the powerful" during the World War II  and were recognized as the Allied "Big Four" in Declaration by United Nations These four countries were considered as the "Four Policemen" or "Four Sheriffs" of the Allies power and primary victors of World War II. From then through August 1945, battles raged across all of Europe, in the North Atlantic Ocean, across North Africa, throughout Southeast Asia, throughout China, across the Pacific Ocean and in the air over Japan.
Document 3: Justice of the peace: A justice of the peace in Singapore derives his powers from statute law. He is appointed by the President of the Republic of Singapore, under the provisions of section 11 (l) of the Subordinate Courts Act (Cap. 321). The President may revoke the appointment of any justice of the peace. A newly appointed justice of the peace is required by section 17 of the Subordinate Courts Act, to take the oath of office and allegiance as set out in the schedule to the Subordinate Courts Act, before exercising the functions of his office.
Document 4: Consequences of the attack on Pearl Harbor: On December 8, 1941, Japan declared war on the United States and the British Empire. The Japanese document discussed world peace and the disruptive actions of the United States and the United Kingdom. The document claimed all avenues for averting war had been exhausted by the Government of Japan.
Document 5: Pacific War: In January, Japan invaded Burma, the Dutch East Indies, New Guinea, the Solomon Islands and captured Manila, Kuala Lumpur and Rabaul. After being driven out of Malaya, Allied forces in Singapore attempted to resist the Japanese during the Battle of Singapore but surrendered to the Japanese on 15 February 1942; about 130,000 Indian, British, Australian and Dutch personnel became prisoners of war. The pace of conquest was rapid: Bali and Timor also fell in February. The rapid collapse of Allied resistance had left the "ABDA area" split in two. Wavell resigned from ABDACOM on 25 February, handing control of the ABDA Area to local commanders and returning to the post of Commander-in-Chief, India.
Document 6: History of Singapore: On the morning of 9 August 1965, the Parliament of Malaysia voted 126–0 in favor of a constitutional amendment expelling Singapore from the federation; hours later, the Parliament of Singapore passed the Republic of Singapore Independence Act, establishing the island as an independent and sovereign republic.  A tearful Lee Kuan Yew announced in a televised press conference that Singapore had become a sovereign, independent nation. In a widely remembered quote, he stated: "For me, it is a moment of anguish. All my life, my whole adult life, I have believed in merger and unity of the two territories." The new state became the Republic of Singapore, with Yusof bin Ishak appointed as its first President.
Document 7: British Empire: The changing world order that the war had brought about, in particular the growth of the United States and Japan as naval powers, and the rise of independence movements in India and Ireland, caused a major reassessment of British imperial policy. Forced to choose between alignment with the United States or Japan, Britain opted not to renew its Japanese alliance and instead signed the 1922 Washington Naval Treaty, where Britain accepted naval parity with the United States. This decision was the source of much debate in Britain during the 1930s as militaristic governments took hold in Japan and Germany helped in part by the Great Depression, for it was feared that the empire could not survive a simultaneous attack by both nations. Although the issue of the empire's security was a serious concern in Britain, at the same time the empire was vital to the British economy.
Document 8: Prime Minister of Singapore: Prime Minister of the Republic of Singapore (show) Perdana Menteri Republik Singapura (Malay) 新加坡共和国总理 (Chinese) சிங்கப்பூர் குடியரசின் பிரதமர் (Tamil) Prime Minister's Crest Incumbent Lee Hsien Loong, MP since 12 August 2004 Style The Honourable Residence Sri Temasek Appointer President of the Republic of Singapore Term length 5 years or earlier, renewable. The Parliament of Singapore must be dissolved every 5 years or earlier by the Prime Minister. The leader of the majority party in the parliament will become the Prime Minister. Inaugural holder Lee Kuan Yew Formation 3 June 1959 Salary S $2.2 million annually Website www.pmo.gov.sg
Document 9: Separation of powers under the United States Constitution: Judicial power—the power to decide cases and controversies—is vested in the Supreme Court and inferior courts established by Congress. The judges must be appointed by the president with the advice and consent of the Senate, hold office during good behavior and receive compensations that may not be diminished during their continuance in office. If a court's judges do not have such attributes, the court may not exercise the judicial power of the United States. Courts exercising the judicial power are called "constitutional courts."
Document 10: Government of the Philippines: The judicial power is vested in the Supreme Court of the Philippines and lower courts established by law. The Supreme Court, which has a Chief Justice as its head and 14 Associate Justices, occupies the highest tier of the judiciary. The justices serve until the age of 70. The justices are appointed by the president on the recommendation of the Judicial and Bar Council of the Philippines. The sitting Chief Justice is Maria Lourdes Sereno, the 24th to serve in that position...
Document 11: Ministry of Law and Justice (Pakistan): The ministry's political executive figure is known as the Minister for Law, Justice and Human Rights, who must be an elected legislator and Parliamentarian. The Minister for Justice is associated with enforcing laws and administration of government judicial departments, and is a public face of the government in legal services required by the state. The ministry is also represented by the Attorney General as the chief law enforcement officer of the federal government, representing it in civilian Supreme Court cases, and assisting the Minister for Justice and the government in legal cases. Both the Minister for Justice and Attorney General are nominated by the Prime Minister of Pakistan, and are members of the Cabinet. As of November 2012, the Minister for Justice is Parliamentarian Mr. Zahid Hamid and the current Attorney General is Ashtar Ausaf Ali.
Document 12: Estonia: According to the Constitution of Estonia (Estonian: Põhiseadus) the supreme power of the state is vested in the people. The people exercise their supreme power of the state on the elections of the Riigikogu through citizens who have the right to vote. The supreme judicial power is vested in the Supreme Court or Riigikohus, with nineteen justices. The Chief Justice is appointed by the parliament for nine years on nomination by the president. The official Head of State is the President of Estonia, who gives assent to the laws passed by Riigikogu, also having the right of sending them back and proposing new laws.
Document 13: British Empire: By the turn of the 20th century, fears had begun to grow in Britain that it would no longer be able to defend the metropole and the entirety of the empire while at the same time maintaining the policy of "splendid isolation". Germany was rapidly rising as a military and industrial power and was now seen as the most likely opponent in any future war. Recognising that it was overstretched in the Pacific and threatened at home by the Imperial German Navy, Britain formed an alliance with Japan in 1902 and with its old enemies France and Russia in 1904 and 1907, respectively.
Document 14: History of Australia: British Malaya quickly collapsed, shocking the Australian nation. British, Indian and Australian troops made a disorganised last stand at Singapore, before surrendering on 15 February 1942. Around 15,000 Australian soldiers became prisoners of war. Curtin predicted that the "battle for Australia" would now follow. On 19 February, Darwin suffered a devastating air raid, the first time the Australian mainland had ever been attacked by enemy forces. Over the following 19 months, Australia was attacked from the air almost 100 times.
Document 15: British Empire: In December 1941, Japan launched, in quick succession, attacks on British Malaya, the United States naval base at Pearl Harbor, and Hong Kong. Churchill's reaction to the entry of the United States into the war was that Britain was now assured of victory and the future of the empire was safe, but the manner in which British forces were rapidly defeated in the Far East irreversibly harmed Britain's standing and prestige as an imperial power. Most damaging of all was the fall of Singapore, which had previously been hailed as an impregnable fortress and the eastern equivalent of Gibraltar. The realisation that Britain could not defend its entire empire pushed Australia and New Zealand, which now appeared threatened by Japanese forces, into closer ties with the United States. This resulted in the 1951 ANZUS Pact between Australia, New Zealand and the United States of America.
ground_truth: appointed by the President of the Republic of Singapore
sub_queries: Which territory had been compared to Gibraltar? Answer: Singapore
how to become a justice of peace in Singapore Answer: appointed by the President of the Republic of Singapore