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
What are the resolutions of all songs with a rating lower than 8?
assistant
SELECT resolution FROM song WHERE rating < 8;
human
What are the IDs and resolutions of all the songs with resolutions higher than those?
assistant
SELECT f_id , resolution FROM song WHERE resolution > ( SELECT MAX( resolution ) FROM song WHERE rating < 8 ) ;