human
Schema:
genre (g_name, rating, most_popular_in)
artist (artist_name, country, gender, preferred_genre)
files (f_id, artist_name, file_size, duration, formats)
song (song_name, artist_name, country, f_id, genre_is, rating, languages, releasedate, resolution)
Please answer with SQL.
assistant
Sure, I understand.
human
For each format, how many files are there?
assistant
SELECT formats , COUNT( * ) FROM files GROUP by formats;
human
So which format is the most common one?
assistant
SELECT formats FROM files GROUP BY formats ORDER BY COUNT( * ) DESC LIMIT 1 ;