Task: Text to Code
Input (English): SQL: SELECT DISTINCT T1.LName FROM Student AS T1 JOIN Voting_record AS T2 ON T1.StuID = T2.StuID WHERE T2.President_Vote = 1004
Feedback: There is no need to find president vote equals 1004 , find for those student who have class president vote in plcae of that .
Output (English): SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  T2.CLASS_President_VOTE