He shall, when required by either branch of the general court, give his opinion upon any question of law submitted to him therefrom.