Task: Text to Code
Input (English): SQL: SELECT name , salary FROM instructor WHERE dept_name = "History"
Feedback: Make sure instructor's id is one of the result of advisor's year .
Output (English): SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'