added query to pull all instructor's term