Question: Find the name, address, number of students in the departments that have the top 3 highest number of students.
Schema: create table student (dept_code varchar, PRIMARY KEY (dept_code)); create table department (dept_name varchar, dept_address varchar, dept_code varchar, PRIMARY KEY (dept_name))
SQL: select t2.dept_name, t2.dept_address, count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 3