Judge

A judge is a person who presides over court proceedings. A judge is usually a lawyer. In Starfleet and other military institutions, a judge is part of the Judge Advocate General's office.

Such individuals hear the testimony of witnesses and evaluates evidence presented by parties and then issues a judgment based on the applicable law and his or her own personal judgment. In criminal matters, a judge may decide the guilt or innocence of a person and issue sentences to those found guilty. 

T'Pau of Vulcan and Aaron Satie were revered judges in the United Federation of Planets. 

During the first encounter between Q and the crew of the USS Enterprise (NCC-1701-D) Q appeared as a Post-Atomic Horror Judge among other figures. .