Question: Show the role description and the id of the project staff involved in most number of project outcomes?
Schema: create table project_outcomes (project_id varchar, PRIMARY KEY (project_id)); create table project_staff (staff_id varchar, role_code varchar, project_id varchar, PRIMARY KEY (staff_id)); create table staff_roles (role_description varchar, role_code varchar, PRIMARY KEY (role_description))
SQL: select t1.role_description, t2.staff_id from staff_roles as t1 join project_staff as t2 on t1.role_code = t2.role_code join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.staff_id order by count(*) desc limit 1