Question: Find the description of the most popular role among the users that have logged in.
Schema: create table users (role_description varchar, role_code varchar, user_login varchar, PRIMARY KEY (role_description)); create table roles (role_description varchar, role_code varchar, user_login varchar, PRIMARY KEY (role_description))
SQL: select role_description from roles where role_code = (select role_code from users where user_login = 1 group by role_code order by count(*) desc limit 1)