Task: Explanation
Input (English): Frederick II (German: "Friedrich" ; 24 January 171217 August 1786) was King of Prussia from 1740 until 1786, the longest reign of any Hohenzollern king. His most significant accomplishments during his reign included his military victories, his reorganization of Prussian armies, his patronage of the arts and the Enlightenment in Prussia, and his final success against great odds in the Seven Years' War. Frederick was the last titled King in Prussia and declared himself King of Prussia after achieving full sovereignty for all historical Prussian lands. Prussia had greatly increased its territories and became a leading military power in Europe under his rule. He became known as Frederick the Great ("Friedrich der Große ") and was affectionately nicknamed "Der Alte Fritz " ("Old Fritz") by the Prussian and later by all German people. Question: When was the King of Prussia died under whom Friedrich Wilhelm Ernst Freiherr von Gaudi served as a Lieutenant General? Answer: August 1786
Output (English): Frederick II German: Friedrich ; 24 January 171217 August 1786 was King of Prussia from 1740 until 1786, the longest reign of any Hohenzollern king.