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 file ids?
assistant
SELECT COUNT( distinct f_id ) FROM files;
human
what is country for Shrikanta?
assistant
SELECT T2.country FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.artist_name = 'Shrikanta';
human
who is highest rating?
assistant
SELECT artist_name FROM song ORDER by rating desc LIMIT 1;
human
what is languages for Prity and genre? | Do you mean the song with the artist name Prity? | yes
assistant
SELECT languages , genre_is FROM song WHERE artist_name = "Prity" ;