Task: Text to Code
Input (English): Find the distinct majors of students who have treasurer votes.
Output (English): SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote