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 songs are there?
assistant
SELECT COUNT( * ) FROM files;
human
Who sings the song with a length of 5minutes and 23 seconds?
assistant
SELECT artist_name FROM files WHERE duration = '5:23';
human
what's the id of that song?
assistant
SELECT f_id FROM files WHERE duration = "5:23" ;