Task: Text to Code
Input (English): SQL: SELECT T2.i_ID FROM instructor AS T1 JOIN advisor AS T2 ON T1.ID = T2.i_ID WHERE T1.dept_name = "History"
Feedback: Find instructor's id for student whose department name equals History , make sure instructor is an advisor .
Output (English): SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'