Question: Janet Kennedy is best known as the mistress of the King of Scotland who is generally regarded as the most successful of the Stewart monarchs of Scotland, but whose reign ended where?

Context paragraphs:
Óláfr Guðrøðarson (died 1153): Óláfr Guðrøðarson (died 29 June 1153) was a twelfth-century King of the Isles.  As a younger son of Guðrøðr Crovan, King of Dublin and the Isles, Óláfr witnessed a vicious power struggle between his elder brothers in the aftermath of their father's death.  At some point, the young Óláfr was entrusted to the care of Henry I, King of England, and like the contemporaneous Scottish monarchs, Alexander I and David I, Óláfr appears to have been a protégé of the English king.  As King of the Isles, Óláfr contracted marital alliances with neighbouring maritime rulers.  Although he appears to have overseen successful military operations to reclaim the northern-most territories once controlled by his father, he may have witnessed the loss of authority in Galloway as well.  Like his counterpart David I, Óláfr was a reformer and moderniser of his realm.  However, his four-decade reign ended in abrupt disaster when he was assassinated by three nephews in 1153.  Following the ensuing power struggle, Óláfr's son Guðrøðr overcame the kin-slayers, and assumed the kingship of the Kingdom of the Isles.

Nicholas I of Russia: Nicholas I (Russian: Николай I Павлович , "Nikolay I Pavlovich" ; 6 July [O.S. 25 June] 1796 – 2 March [O.S. 18 February] 1855 ) was the Emperor of Russia from 1825 until 1855.  He was also the King of Poland and Grand Duke of Finland.  He is best known as a political conservative whose reign was marked by geographical expansion, repression of dissent, economic stagnation, poor administrative policies, a corrupt bureaucracy, and frequent wars that culminated in Russia's defeat in the Crimean War of 1853–56.  His biographer Nicholas V. Riasanovsky says that Nicholas displayed determination, singleness of purpose, and an iron will, along with a powerful sense of duty and a dedication to very hard work.  He saw himself as a soldier—a junior officer totally consumed by spit and polish.  A handsome man, he was highly nervous and aggressive.  Trained as an engineer, he was a stickler for minute detail.  In his public persona, says Riasanovsky, "Nicholas I came to represent autocracy personified: infinitely majestic, determined and powerful, hard as stone, and relentless as fate."  His reign had an ideology called "Official Nationality" that was proclaimed officially in 1833.  It was a reactionary policy based on orthodoxy in religion, autocracy in government, and Russian nationalism.  He was the younger brother of his predecessor, Alexander I.  Nicholas inherited his brother's throne despite the failed Decembrist revolt against him and went on to become the most reactionary of all Russian leaders.  His aggressive foreign policy involved many expensive wars, having a disastrous effect on the empire's finances.

James Stewart, 1st Earl of Moray (1501 creation): James Stewart, Earl of Moray (c. 1500–1544) was the illegitimate son of James IV of Scotland and his mistress Janet Kennedy.  He was created Earl of Moray in 1501, and was young enough to avoid fighting at the disastrous Battle of Flodden in 1513.  He went on to have a varied relationship with his half-brother James V, and was imprisoned for a time.  In February 1531, James V gave him a commission to negotiate with rebels in Scottish Isles and offer them pardons for future obedience.

Sudingphaa: Sudingphaa (or Chandrakanta Singha) () (1811–1818, 1819–1821) was a Tungkhungia king of the Ahom dynasty, who ruled at the climactic of the Ahom kingdom.  His reign witnessed the invasion of Burmese on Assam and its subsequent occupation by British East India Company.  He was installed as King twice.  His first reign ended when Ruchinath Burhagohain deposed him and installed Purandar Singha in his stead.  His second reign ended with his defeat at the hands of the invading Burmese army.  He continued his militant efforts to regain his kingdom as well as to keep Purandar Singha at bay.  Finally he submitted himself to Burmese who induced him to believe that they will make him king.  Instead he was seized and placed in confinement at Rangpur.  After the defeat of Burmese in the First Anglo-Burmese War and subsequent peace Treaty of Yandabo on 24 February 1826 CE, Assam passed into the hand of British.  Most of the members of Ahom Royal family were granted pensions.  Chandrakanta Singha received a pension of 500 rupees.  He first lived in Kaliabor and later on at Guwahati.  He visited Calcutta in order to request the restoration of his kingdom but in vain.  He died in 1839 CE soon after his return to Guwahati.

Janet Kennedy: Janet Kennedy (c. 1480 – c. 1545), the first daughter of John Kennedy, 2nd Lord Kennedy and Lady Elizabeth Gordon.  She is best known as the mistress of King James IV of Scotland.

James IV of Scotland: James IV (17 March 1473 – 9 September 1513) was the King of Scotland from 11 June 1488 to his death.  He assumed the throne following the death of his father, James III, in the Battle of Sauchieburn, a rebellion in which the younger James played an indirect role.  He is generally regarded as the most successful of the Stewart monarchs of Scotland, but his reign ended in a disastrous defeat at the Battle of Flodden, where he became the last monarch not only from Scotland, but from all of Great Britain, to be killed in battle.

Gothabhaya of Anuradhapura: Gothabhaya, also known as Meghavannabhaya, Gothakabhaya and Goluaba, was a king of the Anuradhapura Kingdom of Sri Lanka whose reign lasted from 254 to 267.  During his reign, Gothabhaya renovated several temples and monasteries and also built a new temple.  He is the last of three friends who seized the throne from King Vijaya Kumara and ruled the country.  He is known for banishing 60 Buddhist monks who followed teaching contradictory to Theravada, and also for rebelling against his friend Samghabodhi to seize the throne himself.

Aggabodhi III of Anuradhapura: Aggabodhi III was King of Anuradhapura in the 7th century, whose reign lasted the year 623 and from 624 to 640.  He succeeded his father Silameghavanna as King of Anuradhapura and was succeeded by Jettha Tissa III in his first reign and Dathopa Tissa I in his second.

Mittasena of Anuradhapura: Mittasena (or Mitta Sena or Karalsora) was King of Anuradhapura in the 5th century, whose reign lasted from 435 to 436.  He succeeded Chattagahaka Jantu as King of Anuradhapura.  During his reign, the kingdom was invaded by Pandu of The Six Dravidians.

Jacobean architecture: The Jacobean style is the second phase of Renaissance architecture in England, following the Elizabethan style.  It is named after King James I of England, with whose reign (1603-1625 in England) it is associated.  At the start of James' reign there was little stylistic break in architecture, as Elizabethan trends continued their development.  However his death in 1625 came as a decisive change towards more classical architecture, with Italian influence, was in progress, led by Inigo Jones; the style this began is sometimes called Stuart architecture, or English Baroque (though the latter term may be regarded as starting later).

Supporting paragraphs: Janet Kennedy James IV of Scotland
Answer: Battle of Flodden