Task: Text to Code
Input (English): SQL: SELECT DISTINCT Major FROM Student
Feedback: Use treasurer vote of voting record table instead of advisor of student table .
Output (English): SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.Treasurer_Vote