Yes, what is the answer to your question?
select i_id from advisor as t1 join student as t2 on t1.s_id = t2.id where t2.dept_name = 'History'
How many instructors advising of students from the history department?
select count ( i_id ) from advisor as t1 join student as t2 on t1.s_id = t2.id where t2.dept_name = 'History'