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
How many artists have Bangla songs?
assistant
SELECT COUNT( DISTINCT artist_name ) FROM song WHERE languages = 'bangla';
human
How about English?
assistant
SELECT COUNT( DISTINCT artist_name ) FROM song WHERE languages = 'bangla';
human
What are the names of them?
assistant
SELECT artist_name FROM song WHERE languages = 'english';
human
Which of them have never received rating higher than 8.
assistant
SELECT DISTINCT artist_name FROM song WHERE languages = "english" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 8 ;