Task: Text to Code
Input (English): SQL: SELECT Avg ( Age ) FROM Student WHERE city_code = "NYC" AND Major = 600
Feedback: Remove advisor equals 600 , and confirm that election cycle equals Spring and they have secretary votes .
Output (English): SELECT avg(T1.Age) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID  =  SECRETARY_Vote WHERE T1.city_code  =  "NYC" AND T2.Election_Cycle  =  "Spring"