Question: In the Battle of Głogów  the Imperial forces were under command of Holy Roman Emperor and the fourth and last ruler of the what dynasty?

<P0-S0> The Battle of Głogów or Defense of Głogów (German: "Schlacht bei Glogau" , Polish: "Obrona Głogowa" ) was fought on 24 August 1109 at the Silesian town of Głogów, between the Kingdom of Poland and the Holy Roman Empire. <P0-S1>  Recorded by the medieval chronicler Gallus Anonymus it is one of the most well known battles in Polish history. <P0-S2>  The Polish forces were led by Duke Bolesław III Wrymouth, while the Imperial forces were under command of King Henry V of Germany. <P0-S3>  Bolesław was victorious. <SEP> <P1-S0> The end of the Han dynasty refers to the period of Chinese history from 189 to 220 AD, which roughly coincides with the tumultuous reign of the Han dynasty's last ruler, Emperor Xian. <P1-S1>  During this period, the country was thrown into turmoil by the Yellow Turban Rebellion (184-205). <P1-S2>  Meanwhile, the Han Empire's institutions were destroyed by the warlord Dong Zhuo, and fractured into regional regimes ruled by various warlords, some of whom were nobles and officials of the Han imperial court. <P1-S3>  Eventually, one of those warlords, Cao Cao, was able to gradually reunify the empire, ostensibly under Emperor Xian's rule, but the empire was actually controlled by Cao Cao himself. <P1-S4>  Cao Cao's efforts to completely reunite the Han empire were rebuffed at the Battle of Red Cliffs in 208 / 209, when his armies were defeated by the allied forces of Sun Quan and Liu Bei. <P1-S5>  The Han dynasty formally ended in 220 when Cao Cao's son and heir, Cao Pi, pressured Emperor Xian into abdicating in his favour. <P1-S6>  Cao Pi became the emperor of a new state, Cao Wei. <P1-S7>  A year later, in response to Cao Pi's usurpation of the Han throne, Liu Bei declared himself emperor of Shu Han; and in 229, Sun Quan followed suit, declaring himself emperor of Eastern Wu. <P1-S8>  The period from Emperor Xian's abdication in 220 to the partial reunification of China under the Jin dynasty in 265 was known as the Three Kingdoms era in Chinese history. <SEP> <P2-S0> Henry V (German: "Heinrich V." ; 11 August 1081/86 – 23 May 1125) was King of Germany (from 1099 to 1125) and Holy Roman Emperor (from 1111 to 1125), the fourth and last ruler of the Salian dynasty. <P2-S1>  Henry's reign coincided with the final phase of the great Investiture Controversy, which had pitted pope against emperor. <P2-S2>  By the settlement of the Concordat of Worms, he surrendered to the demands of the second generation of Gregorian reformers. <SEP> <P3-S0> The Imperial Military Constitution (German: "Reichsheeresverfassung" , also called the "Reichskriegsverfassung") of the Holy Roman Empire, like the rest of the imperial constitution, grew out of various laws and governed the establishment of military forces within the Empire. <P3-S1>  It was the basis for the establishment of the Army of the Holy Roman Empire ("Reichsarmee"), which was under the supreme command of the Emperor but was distinct from his Imperial Troops, as it could only be deployed by the Imperial Diet. <P3-S2>  The last Imperial Defence Order ("Reichsdefensionalordnung"), entitled "Reichsgutachten in puncto securitatis", of 13/23 May 1681, completed the military constitution of the Holy Roman Empire.