Q: In this task, you are given a question and a context passage. You have to answer the question based on the given passage.
Who did the Kingdom of Prussia rule over?, Context: The sovereignty of szlachta was ended in 1795 by Partitions of Poland, and until 1918 their legal status was dependent on policies of the Russian Empire, the Kingdom of Prussia or the Habsburg Monarchy.
A:
Poland