Original: She is the queen each country separately, but she lives in the United Kingdom, her oldest "realm".
Simplified: She is the queen of each country separately, but she lives in the United Kingdom, her oldest "realm".