Question: What is the last name and office of the professor from the history department?
Schema: create table department (dept_code varchar, dept_name varchar, PRIMARY KEY (dept_code)); create table employee (emp_lname varchar, emp_num varchar, PRIMARY KEY (emp_lname)); create table professor (prof_office varchar, emp_num varchar, dept_code varchar, PRIMARY KEY (prof_office))
SQL: select t1.emp_lname, t2.prof_office from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'history'