What is the id of the instructor who advises of all students from History department?
create table advisor (s_id varchar, PRIMARY KEY (s_id)); create table student (id varchar, dept_name varchar, PRIMARY KEY (id))
select s_id from advisor as t1 join student as t2 on t1.s_id = t2.id where t2.dept_name = 'history'