Task: Text to Code
Input (English): SQL: SELECT StuID FROM Student WHERE Advisor = "Professor"
Feedback: The students' advisor should be a faculty whose rank equals Professor .
Output (English): SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  "Professor"