Question: When did Sang Nila Utama come to the country compared to Gibraltar?

full_context: Document 1: Nanjing: As the center of the empire, early-Ming Nanjing had worldwide connections. It was home of the admiral Zheng He, who went to sail the Pacific and Indian Oceans, and it was visited by foreign dignitaries, such as a king from Borneo (Boni 渤泥), who died during his visit to China in 1408. The Tomb of the King of Boni, with a spirit way and a tortoise stele, was discovered in Yuhuatai District (south of the walled city) in 1958, and has been restored.
Document 2: Bhuu: Vedic mythology and Vedic astronomy describes Bhu-mandala, Bhuloka to be divided into 7 islands (planets in outer space). It is said that Maharaja Priyavrata drove his celestial chariot behind the sun, the rims of his chariot wheels created impressions that later became seven oceans, dividing the planetary system known as Bhu-mandala into seven islands. So, he created seven different types of oceans and planetary systems, which altogether are known as Bhu-mandala, or Bhuloka.
Document 3: Ram Khamhaeng: Ram Khamhaeng the Great (, ) or Pho Khun Ram Khamhaeng (), was the third king of the Phra Ruang dynasty, ruling the Sukhothai Kingdom (early kingdom of Siam) from 1279–1298, during its most prosperous era.
Document 4: 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 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: Southeast Asia: The Majapahit Empire was an Indianised kingdom based in eastern Java from 1293 to around 1500. Its greatest ruler was Hayam Wuruk, whose reign from 1350 to 1389 marked the empire's peak when it dominated other kingdoms in the southern Malay Peninsula, Borneo, Sumatra, and Bali. Various sources such as the Nagarakertagama also mention that its influence spanned over parts of Sulawesi, Maluku, and some areas of western New Guinea and the Philippines, making it the largest empire to ever exist in Southeast Asian history.
Document 7: Sang Nila Utama: Sang Nila Utama is a Srivijaya prince from Palembang said to have founded the Kingdom of Singapura in 1299. His official title adopted upon his coronation, was Sri Maharaja Sang Utama Parameswara Batara Sri Tri Buana, which can be translated as ``Central Lord King of the Three Worlds ''. The`` Three Worlds'' may refer to the three realms of the universe -- the heaven of the gods, the world of humans, and the underworld of demons. A few early kings in South East Asia had used the title Sri Tri Buana or ``Lord of the Three Worlds ''. He died in 1347; his son, Paduka Seri Wikrama Wira succeeded him. The account of his life is given in the Malay Annals. However, the historicity of the events as given in the Malay Annals is debated by scholars, and some believe that Sang Nila Utama may be a mythical person.
Document 8: Omar Ali Saifuddien III: DYTM Paduka Seri Begawan Sultan Sir Muda Haji Omar Ali Saifuddien III (full name: Sultan Haji Omar Ali Saifuddien Sa'adul Khairi Waddien ibni Almarhum Sultan Muhammad Jamalul Alam II, GCVO, KCMG; 23 September 1914 – 7 September 1986) was the 28th Sultan of Brunei who ruled from 4 June 1950 until his voluntary abdication from the throne on 5 October 1967. He was also Brunei's Minister of Defence after the country's independence. He was known as "The Architect of Modern Brunei", "The Royal Poet", and "The Father of Independence".
Document 9: Sheikh Mustafa: Sheikh Mustafa was born in 1836 (Hijri 1252) in Beruwala, Sri Lanka. His father Baawa Aadam was a descendant from Sultan Jamaluddeen bin Alawuddeen dunnurainul Usmani, who was a descendant of Caliph Uthman ibn Affan, the third Caliph of Islam. Sultan Jamaluddeen bin Halauddeen ruled Konya, a city in the Central Anatolian region of Turkey. Sultan Jamaluddeen and his eleven companions migrated to Sri Lanka. King Wasanthahimiya then ruled Beruwala. King Wasanthhimiya honoured Sultan Jamaluddeen and granted posts to him and his friends according to their status.
Document 10: 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 11: 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 12: 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.
Document 13: Chenla: The "New Book of Tang" asserts that shortly after 706, the country was split into Land Chenla and Water Chenla. The names signify a northern and a southern half, which may conveniently be referred to as Upper (northern) and Lower (southern) Chenla. By the late 8th century Water Chenla had become dependent on the thalassocratic Shailendra dynasty on Java and the Srivijaya city-state on Sumatra. The last of Water Chenla's kings seems to have been killed and the polity incorporated into the Javanese monarchy around the year 790. Land Chenla maintained its integrity under Jayavarman II, who proclaimed the Khmer Empire in 802.
Document 14: 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 15: 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.
ground_truth: 1299
sub_queries: Which territory had been compared to Gibraltar? Answer: Singapore
when did sang nila utama came to Singapore Answer: 1299