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
List all the song names and the resolutions in ascending order of resolution.
assistant
SELECT song_name , resolution FROM song ORDER by resolution asc;
human
Which ones are the top two of the resolution?
assistant
SELECT song_name , resolution FROM song ORDER by resolution desc LIMIT 2;
human
What is the average resolution for the English songs?
assistant
SELECT AVG ( resolution ) FROM song WHERE languages = 'english';
human
Which songs have a higher resolution than the English ones?
assistant
SELECT song_name FROM song WHERE resolution > ( SELECT MIN( resolution ) FROM song WHERE languages = 'english' );
human
What about the distinct song names of them?
assistant
SELECT DISTINCT song_name FROM song WHERE resolution > ( SELECT MIN( resolution ) FROM song WHERE languages = "english" ) ;