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