Question: What is the legal system based on for the location where A-Ma Temple is located?

full_context: Document 1: Judiciary: The judiciary (also known as the judicial system or court system) is the system of courts that interprets and applies the law in the name of the state. The judiciary also provides a mechanism for the resolution of disputes. In most nations, under doctrines of separation of powers, the judiciary generally does not make law (which is the responsibility of the legislature) or enforce law (which is the responsibility of the executive), but rather interprets law and applies it to the facts of each case. In other nations, the judiciary can make law, known as Common Law, by setting precedent for other judges to follow, as opposed to Statutory Law made by the legislature. The Judiciary is often tasked with ensuring equal justice under law.
Document 2: Supreme court: In Hong Kong, the Supreme Court of Hong Kong (now known as the High Court of Hong Kong) was the final court of appeal during its colonial times which ended with transfer of sovereignty in 1997. The final adjudication power, as in any other British Colonies, rested with the Judicial Committee of the Privy Council (JCPC) in London, United Kingdom. Now the power of final adjudication is vested in the Court of Final Appeal created in 1997. Under the Basic Law, its constitution, the territory remains a common law jurisdiction. Consequently, judges from other common law jurisdictions (including England and Wales) can be recruited and continue to serve in the judiciary according to Article 92 of the Basic Law. On the other hand, the power of interpretation of the Basic Law itself is vested in the Standing Committee of the National People's Congress (NPCSC) in Beijing (without retroactive effect), and the courts are authorised to interpret the Basic Law when trying cases, in accordance with Article 158 of the Basic Law. This arrangement became controversial in light of the right of abode issue in 1999, raising concerns for judicial independence.
Document 3: Portugal: The early history of Portugal is shared with the rest of the Iberian Peninsula located in South Western Europe. The name of Portugal derives from the joined Romano-Celtic name Portus Cale. The region was settled by Pre-Celts and Celts, giving origin to peoples like the Gallaeci, Lusitanians, Celtici and Cynetes, visited by Phoenicians and Carthaginians, incorporated in the Roman Republic dominions as Lusitania and part of Gallaecia, after 45 BC until 298 AD, settled again by Suebi, Buri, and Visigoths, and conquered by Moors. Other influences include some 5th-century vestiges of Alan settlement, which were found in Alenquer (old Germanic Alankerk, from Alan+kerk; meaning church of the Alan (people), Coimbra and Lisbon.
Document 4: Macau: Macau was formerly a colony of the Portuguese Empire, after Ming China leased the territory as a trading post in 1557. Originally governing under Chinese authority and sovereignty, Portugal was given perpetual occupation rights for Macau in 1887. Macau remained under Portuguese control until 1999, when it was returned to China. As a special administrative region, Macau maintains a separate political and economic system apart from mainland China.
Document 5: A-Ma Temple: The name "Macau" was thought to be derived from the name of the temple. It is said that when the Portuguese sailors landed at the coast just outside the temple and asked the name of the place, the natives replied "Maa-gok" or "A-maa-gok" of the Mother"). The Portuguese then named the peninsula "Macau". The temple was well described in ancient Chinese texts, as well as represented in paintings, related to Macao. It is also one of the first scenes photographed in Macao.
Document 6: History of Chinese Australians: Some historians have theorised that Northern Indigenous Australians may even have had dealings with Chinese traders or come across Chinese goods particularly through trepanging. Sir Joseph Banks was of the opinion that any British colony in Australia could be populated by 'useful inhabitants from China'. The first official undisputed link between China and Australia comes from the very beginning of the colony of New South Wales. The First Fleet ships, Scarborough, Charlotte and Lady Penrhyn, after dropping off their convict load, sailed for Canton to buy tea and other goods to sell on their return to England. The Bigge Report attributed the high level of tea drinking to 'the existence of an intercourse with China from the foundation of the Colony...' Many British East India Company ships used Australia as a port of call on their trips to and from buying tea from China. That the ships carrying such cargo had Chinese crew members is likely and that some of the crew and possibly passengers embarked at the port of Sydney is probable. Certainly by 1818, Mak Sai Ying (also known as John Shying) had arrived and after a period of farming became, in 1829, the publican of The Lion in Parramatta. John Macarthur, a prominent pastoralist, employed three Chinese people on his properties in the 1820s and records may well have neglected others. Another way ethnic Chinese made it to Australia was from the new British possessions of Malaysia and Singapore.
Document 7: 2008 Summer Olympics torch relay: Macao: The event was held in Macau on May 3. It was the first time that the Olympic torch had traveled to Macau. A ceremony was held at Macau Fisherman's Wharf. Afterward, the torch traveled through Macau, passing by a number of landmarks including A-Ma Temple, Macau Tower, Ponte Governador Nobre de Carvalho, Ponte de Sai Van, Macau Cultural Centre, Macau Stadium and then back to the Fisherman's Wharf for the closing ceremony. Parts of the route near Ruins of St. Paul's and Taipa was shortened due to large crowds of supporters blocking narrow streets. A total of 120 torchbearers participated in this event including casino tycoon Stanley Ho. Leong Hong Man and Leong Heng Teng were the first and last torchbearer in the relay respectively. An article published on Macao Daily News criticized that the list of the torchbearers could not fully represent the Macanese and that there were too many non-athletes among the torchbearers. (some of whom had already been torchbearers of other sporting events)
Document 8: Supreme court: While the Philippines is generally considered a civil law nation, its Supreme Court is heavily modelled after the American Supreme Court. This can be attributed to the fact that the Philippines was colonized by both Spain and the United States, and the system of laws of both nations strongly influenced the development of Philippine laws and jurisprudence. Even as the body of Philippine laws remain mostly codified, the Philippine Civil Code expressly recognizes that decisions of the Supreme Court "form part of the law of the land", belonging to the same class as statutes. The 1987 Philippine Constitution also explicitly grants to the Supreme Court the power of judicial review over laws and executive actions. The Supreme Court is composed of 1 Chief Justice and 14 Associate Justices. The court sits either en banc or in divisions, depending on the nature of the case to be decided.
Document 9: Quốc Ân Temple: In the main hall is a banner, containing a verse of praise of the temple and its founder, written by Nguyễn Phúc Chu, one of the Nguyễn lords who once ruled central and southern Vietnam and the city of Huế. The temple is situated on a small hill in the ward of Trường An in the city of Huế. It is located about from the Phú Cam bridge that spans the Perfume River, which passes through Huế.
Document 10: Supreme court: In Austria, the Austrian Constitution of 1920 (based on a draft by Hans Kelsen) introduced judicial review of legislative acts for their constitutionality. This function is performed by the Constitutional Court (Verfassungsgerichtshof), which is also charged with the review of administrative acts on whether they violate constitutionally guaranteed rights. Other than that, administrative acts are reviewed by the Administrative Court (Verwaltungsgerichtshof). The Supreme Court (Oberste Gerichtshof (OGH)), stands at the top of Austria's system of "ordinary courts" (ordentliche Gerichte) as the final instance in issues of private law and criminal law.
Document 11: Separation of powers under the United States Constitution: The power to review the constitutionality of laws may be limited by Congress, which has the power to set the jurisdiction of the courts. The only constitutional limit on Congress' power to set the jurisdiction of the judiciary relates to the Supreme Court; the Supreme Court may exercise only appellate jurisdiction except in cases involving states and cases affecting foreign ambassadors, ministers or consuls.
Document 12: Supreme court: In most nations with constitutions modelled after the Soviet Union, the legislature was given the power of being the court of last resort. In the People's Republic of China, the final power to interpret the law is vested in the Standing Committee of the National People's Congress (NPCSC). This power includes the power to interpret the basic laws of Hong Kong and Macau, the constitutional documents of the two special administrative regions which are common law and Portuguese-based legal system jurisdictions respectively. This power is a legislative power and not a judicial one in that an interpretation by the NPCSC does not affect cases which have already been decided.
Document 13: Law of the United States: The fifty American states are separate sovereigns, with their own state constitutions, state governments, and state courts. All states have a legislative branch which enacts state statutes, an executive branch that promulgates state regulations pursuant to statutory authorization, and a judicial branch that applies, interprets, and occasionally overturns both state statutes and regulations, as well as local ordinances. They retain plenary power to make laws covering anything not preempted by the federal Constitution, federal statutes, or international treaties ratified by the federal Senate. Normally, state supreme courts are the final interpreters of state constitutions and state law, unless their interpretation itself presents a federal issue, in which case a decision may be appealed to the U.S. Supreme Court by way of a petition for writ of certiorari. State laws have dramatically diverged in the centuries since independence, to the extent that the United States cannot be regarded as one legal system as to the majority of types of law traditionally under state control, but must be regarded as 50 separate systems of tort law, family law, property law, contract law, criminal law, and so on.
Document 14: Separation of powers under the United States Constitution: An example of the first view is the regulation of attorneys and judges, and the establishment of rules for the conduct of the courts, by the Congress and in the states the legislatures. Although in practice these matters are delegated to the Supreme Court, the Congress holds these powers and delegates them to the Supreme Court only for convenience in light of the Supreme Court's expertise, but can withdraw that delegation at any time.
Document 15: Macau: Macau was administered by the Portuguese Empire and its inheritor states from the mid-16th century until late 1999, when it constituted the last remaining European colony in Asia. Portuguese traders first settled in Macau in the 1550s. In 1557, Macau was leased to Portugal from Ming China as a trading port. The Portuguese Empire administered the city under Chinese authority and sovereignty until 1887, when Macau became a colony through a mutual agreement between the two countries. Sovereignty over Macau was transferred back to China on 20 December 1999. The Joint Declaration on the Question of Macau and Macau Basic Law stipulate that Macau operate with a high degree of autonomy until at least 2049, fifty years after the transfer.
ground_truth: Portuguese-based legal system
sub_queries: A-Ma Temple >> located in the administrative territorial entity Answer: Macau
Macau 's legal system comes from what tradition? Answer: Portuguese-based legal system