To hear and determine cases involving disputes: in which the Commonwealth, or a person suing or being sued on behalf of the Commonwealth, is a party; between states, or between residents of different states, or between a state and a resident of another state