Question: List the top 5 genres by number of tracks. List genres name and total tracks.
Schema: create table tracks (genre_id varchar, PRIMARY KEY (genre_id)); create table genres (name varchar, id varchar, PRIMARY KEY (name))
SQL: select t1.name, count(*) from genres as t1 join tracks as t2 on t2.genre_id = t1.id group by t1.id order by count(*) desc limit 5