The Commonwealth Court is one of two statewide intermediate appellate courts, and is limited to appeals from final orders of certain state agencies and certain designated cases from the courts of common pleas involving public sector legal questions and government regulation. The Commonwealth Court also functions as a trial court in some civil actions by or against the Commonwealth government and cases regarding statewide elections.