What is the last name and office of the professor from the history department?
CREATE TABLE professor (
    prof_office VARCHAR,
    emp_num VARCHAR,
    dept_code VARCHAR
)

CREATE TABLE department (
    dept_code VARCHAR,
    dept_name VARCHAR
)

CREATE TABLE employee (
    emp_lname VARCHAR,
    emp_num VARCHAR
)
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'
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the last name and office of the professor from the history department? ### Input: CREATE TABLE professor (
    prof_office VARCHAR,
    emp_num VARCHAR,
    dept_code VARCHAR
)

CREATE TABLE department (
    dept_code VARCHAR,
    dept_name VARCHAR
)

CREATE TABLE employee (
    emp_lname VARCHAR,
    emp_num VARCHAR
) ### Response: 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'