The Solicitor General is that person who represents or advises a government when it is party to a suit, generally in front of its supreme court.
In the Republic of Ireland the Solicitor General is known as the Chief State Solicitor. The Office of Chief State Solicitor is a branch of the Attorney General's Office.
In Sweden the Chancellor of Justice performs the tasks of a Solicitor General. The office was introduced by King Charles XII of Sweden in 1713.
United States Solicitor General
Canadian Solicitor General