What is Queen's Advocate?

Legal Definition
A member of the College of Advocates, appointed by letters patent, whose office is to advise and act as counsel for the crown in questions of civil, canon, and international law. His rank is next after the solicitor general.
-- Black's Law Dictionary