Question: Who appoints the justice of peace in the country where the Istana is located?

full_context: Document 1: 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 2: 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 3: Buckingham Palace: Buckingham Palace (UK: ) is the London residence and administrative headquarters of the monarch of the United Kingdom. Located in the City of Westminster, the palace is often at the centre of state occasions and royal hospitality. It has been a focal point for the British people at times of national rejoicing and mourning.
Document 4: 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 5: Mahlamba Ndlopfu: The house, formerly called Libertas, was designed by Architect Gerard Moerdijk in a traditional Cape Dutch style and completed in 1940 as the official residence for the Prime Minister of South Africa in the Bryntirion suburb of Pretoria. It is surrounded by impressive gardens. Through the years, slight changes were made on the building. After the post of Prime Minister was abolished in 1984, it became the presidential residence.
Document 6: 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 7: Malacañang sa Sugbo: Malacañang sa Sugbo (, ) is the official residence of the President of the Philippines in the Visayas. It is located in Cebu City near the Port Area and Fort San Pedro, and within walking distance from the Basilica Minore del Santo Niño, Magellan's Cross, and City Hall. It is named after the Malacañang Palace, the official residence of the President in the capital city of Manila.
Document 8: Istana Alam Shah: Istana Alam Shah is the official palace of the Sultan of Selangor, located in southern Klang, the royal town of the state of Selangor, Malaysia.
Document 9: 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 10: Monarchy of the United Kingdom: The sovereign's official residence in London is Buckingham Palace. It is the site of most state banquets, investitures, royal christenings and other ceremonies. Another official residence is Windsor Castle, the largest occupied castle in the world, which is used principally at weekends, Easter and during Royal Ascot, an annual race meeting that is part of the social calendar. The sovereign's official residence in Scotland is the Palace of Holyroodhouse in Edinburgh. The monarch stays at Holyrood for at least one week each year, and when visiting Scotland on state occasions.Historically, the Palace of Westminster and the Tower of London were the main residences of the English Sovereign until Henry VIII acquired the Palace of Whitehall. Whitehall was destroyed by fire in 1698, leading to a shift to St James's Palace. Although replaced as the monarch's primary London residence by Buckingham Palace in 1837, St James's is still the senior palace and remains the ceremonial Royal residence. For example, foreign ambassadors are accredited to the Court of St James's, and the Palace is the site of the meeting of the Accession Council. It is also used by other members of the Royal Family.Other residences include Clarence House and Kensington Palace. The palaces belong to the Crown; they are held in trust for future rulers, and cannot be sold by the monarch. Sandringham House in Norfolk and Balmoral Castle in Aberdeenshire are privately owned by the Queen.
Document 11: Blue Palace: The Blue Palace or Plavi Dvorac was built as the heir's palace in Cetinje, the Royal Capital of Montenegro. Today it is the residence of President of Montenegro.
Document 12: 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 13: The Istana: The Istana is the official residence and office of the President of Singapore. Meaning "palace" in Malay, it is where the President receives and entertains state guests. The Istana is also the working office of the Prime Minister of Singapore.
Document 14: 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 15: 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.
ground_truth: appointed by the President of the Republic of Singapore
sub_queries: The Istana >> country Answer: Singapore
how to become a justice of peace in Singapore Answer: appointed by the President of the Republic of Singapore