What is the department name of the students with lowest gpa belongs to?
CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT TOP 1 T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR) Question: What is the department name of the students with lowest gpa belongs to? [/INST] SELECT TOP 1 T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code ORDER BY stu_gpa </s>