Question: Which employee manage most number of peoples? List employee's first and last name, and number of people report to that employee.
Schema: create table employees (first_name varchar, last_name varchar, id varchar, PRIMARY KEY (first_name)); create table employees (reports_to varchar, PRIMARY KEY (reports_to))
SQL: select t2.first_name, t2.last_name, count(t1.reports_to) from employees as t1 join employees as t2 on t1.reports_to = t2.id group by t1.reports_to order by count(t1.reports_to) desc limit 1