Is the UK Queen over the prime minister?
List of prime ministers of Elizabeth II
Since succeeding her father on 6 February 1952, Queen Elizabeth II has been head of state of 32 different independent states; currently, there are 16 states, called Commonwealth realms. Within the Westminster system in each realm, the Queen's government is headed by a prime minister. Appointment and dismissal of prime ministers are common reserve powers that can be exercised by the Queen or her governors-general.
Politics of the United Kingdom
The Scottish Government is responsible for all issues that are not explicitly reserved to the United Kingdom Parliament at Westminster, by the Scotland Act; including NHS Scotland, education, justice, rural affairs, and transport. It manages an annual budget of more than £25 billion.[6] The government is led by the First Minister, assisted by various Ministers with individual portfolios and remits. The Scottish Parliament nominates a Member to be appointed as First Minister by the Queen. The First Minister then appoints their Ministers (now known as Cabinet Secretaries) and junior Ministers, subject to approval by the Parliament. The First Minister, the Ministers (but not junior ministers), the Lord Advocate and Solicitor General are the Members of the 'Scottish Executive', as set out in the Scotland Act 1998. They are collectively known as "the Scottish Ministers".