Question: Which ruler was the last ruler of the dynasty also known as the Lagids or Lagidae?

Context articles: Mo Xi
Tefnakht
Sonni Dynasty
Ptolemy XIV of Egypt
Ptolemaic dynasty
As-Salih Hajji
Aravidu dynasty
Li Yu (Southern Tang)
Farooqi dynasty
Jaunpur Sultanate

Mo Xi (), also called Mei Xi 妹喜, was the concubine of Jie 桀, the last ruler of the legendary Xia dynasty 夏 (trad.
 c. 2070 – c. 1600 BCE).
 According to tradition, Mo Xi, Da Ji 妲己 (the concubine of the last ruler of Shang) and Bao Si 褒姒 (the concubine of the last ruler of Western Zhou) are each blamed the fall of these respective dynasties.
 According to the "Wu Yue chunqiu" 吳越春秋 (Spring and Autumn Annals of Wu and Yue) “Xia fell because of Mo Xi; Yin (Shang) fell because of Da Ji; Zhou fell because of Bao Si” (夏亡以妹喜，殷亡以妲己，周亡以褒姒).
 Neither Mo Xi nor the Lake of Wine, with which she is associated, is mentioned in the story of Jie and the fall of Xia in the "Shiji" 史記 (Records of the Grand Historian).
Shepsesre Tefnakht (in Greek known as Tnephachthos) was a prince of Sais and founder of the relatively short Twenty-fourth dynasty of Egypt; he rose to become a Chief of the Ma in his home city.
 He is thought to have reigned roughly 732 BCE to 725 BCE, or 7 years.
 Tefnakht I first began his career as the "Great Chief of the West" and Prince of Sais and was a late contemporary of the last ruler of the 22nd dynasty: Shoshenq V.
 Tefnakht I was actually the second ruler of Sais; he was preceded by Osorkon C, who is attested by several documents mentioning him as this city's Chief of the Ma and Army Leader, according to Kenneth Kitchen, while his predecessor as Great Chief of the West was a man named Ankhhor.
 A recently discovered statue, dedicated by Tefnakht I to Amun-Re, reveals important details about his personal origins.
 The statue's text states that Tefnakht was the son of a certain Gemnefsutkapu and the grandson of Basa, a priest of Amun near Sais.
 Consequently, Tefnakht was not actually descended from a line of Chiefs of the Ma and Libu tribes as traditionally believed but rather came from a family of priests.
The Sonni Dynasty or Sunni Dynasty was a dynasty of rulers of the Songhai Empire of medieval West Africa.
 The first ruler of the dynasty, Sunni Ali Kulun probably reigned at the end of the fourteenth century.
 The last ruler, Sonni Baru, ruled until 1493 when the throne was usurped by the Askiya Muhammad I, the founder of the Askiya Dynasty.
Ptolemy XIV (Greek: Πτολεμαῖος , "Ptolemaĩos", who lived 60 BC/59 BC–44 BC and reigned 47 BC–44 BC), was a son of Ptolemy XII of Egypt and one of the last members of the Ptolemaic dynasty of Egypt.
 Following the death of his older brother Ptolemy XIII of Egypt on January 13, 47 BC, he was proclaimed Pharaoh and co-ruler by their older sister and remaining Pharaoh, Cleopatra VII of Egypt.
 He and Cleopatra were married, but Cleopatra continued to act as lover of Roman dictator Julius Caesar.
 Ptolemy is considered to have reigned in name only, with Cleopatra keeping actual authority to herself.
 On March 15, 44 BC Caesar was murdered in Rome by a group of conspirators whose most notable members were Marcus Junius Brutus and Gaius Cassius Longinus.
 Ptolemy soon followed him in death.
 An inscription mentioning him as alive was dated at July 26, 44 BC.
 It has been assumed but remains uncertain that Cleopatra poisoned her co-ruler, with aconite, to replace him with his nephew Ptolemy XV Caesarion, her son by Caesar who was proclaimed co-ruler on September 2, 44 BC and whom his mother intended to support as successor of his father.
The Ptolemaic dynasty (Ancient Greek: Πτολεμαῖοι , "Ptolemaioi"), sometimes also known as the Lagids or Lagidae (Ancient Greek: Λαγίδαι , "Lagidai", after Lagus, Ptolemy I's father), was a Macedonian Greek royal family, which ruled the Ptolemaic Kingdom in Egypt during the Hellenistic period.
 Their rule lasted for 275 years, from 305 to 30 BC.
 They were the last dynasty of ancient Egypt.
Al-Salih Hajji (Epithet: Al-Salih Salah Zein al-Din Hajji II), also Haji II, was a Mamluk ruler, and the last ruler of the Bahri dynasty in 1382.
 He briefly ruled again in 1389, during the advent of the Burji dynasty.
 Fell hostage to Barquq before the small battle of Marj al-Saffar in 1390.
 He was the son of Shaban II.
The Aravidu Dynasty was the fourth and last Hindu dynasty which ruled Vijayanagara Empire in South India.
 Its founder was Tirumala Deva Raya, whose brother Rama Raya had been the masterful regent of the last ruler of the previous dynasty.
 Rama Raya's death at the Battle of Rakasa-Tangadi (also known as the Battle of Talikota) in 1565 led to the subsequent destruction of Vijayanagar by the combined forces of the Muslim states of Bijapur.
Li Yu (; 937 – 15 August 978), before 961 known as Li Congjia (李從嘉), also known as Li Houzhu (李後主; literally "Last Ruler Li" or "Last Lord Li"), was the third ruler of the Southern Tang state during imperial China's Five Dynasties and Ten Kingdoms period.
 He reigned from 961 until 976, when he was captured by the invading Song Dynasty armies which annexed his kingdom.
 He died by poison on orders of Emperor Taizong of Song after 2 years essentially as an exiled prisoner.
The "Farooqi dynasty"' (also spelt Farooqui, Faruqi) was the ruling dynasty of the Khandesh sultanate from its inception in 1382 till its annexation by the Mughal emperor Akbar in 1601.
 The founder of the dynasty, Malik Ahmad (also known as Malik Raja) participated in a rebellion against the Bahmani ruler Muhmmad Shah I in his early years.
 When he was compelled to flee from Deccan, he established in Thalner on the Tapti River (in present-day Dhule district in Maharashtra).
 After receiving the grant of the fiefdoms of Thalner and Karanda (the present day Karwand, 19 km north of Thalner) from Firuz Shah Tughluq in 1370, he conquered the region around Thalner, which later became known as Khandesh (the land of the Khans).
 By 1382, he started ruling independently.
 Malik Raja claimed his descent from the second Caliph Umar-al-Faruq.
 Hence, the dynasty founded by him was known as Faruqi dynasty.
 The next ruler, Nasir Khan conquered the Asirgarh fort and made it his capital.
 He founded the new capital Burhanpur in 1399.
 The most illustrious ruler of this dynasty was Adil Khan II.
 During his long reign, Burhanpur was transformed to a major centre for trade and textile production.
 In 1599, Akbar’s army occupied Burhanpur and on January 17, 1601 the citadel of Asirgarh also fell after a long siege.
 The last ruler Bahadur Shah surrendered to the Mughals.
 Khandesh became a Mughal Subah.
 The rulers of Faruqi dynasty were known as who fought against the Hindus and also the Shia's.
The Jaunpur sultanate was an independent kingdom of northern India between 1394 and 1479, whose rulers ruled from Jaunpur or Jounpoor in the present day state of Uttar Pradesh.
 The Jaunpur sultanate was ruled by the "Sharqi" dynasty.
 The Khwajah-i-Jahan Malik Sarwar, the first ruler of the dynasty was a wazir (minister) under Sultan Nasiruddin Muhammad Shah IV Tughluq (1390–1394).
 In 1394, he established himself as an independent ruler of Jaunpur and extended his authority over Awadh and a large part of Ganges-Yamuna doab.
 The dynasty founded by him was named so because of his title "Malik-us-Sharq" (the ruler of the east).
 The most acclaimed ruler of this dynasty was Ibrahim Shah.
 The last ruler Hussain Shah was overthrown by Bahlul Lodi, and Jaunpur sultanate was permanently annexed to Delhi sultanate by Sikandar Lodi.