Database: music_1

Question: What are the names of all songs that have a lower rating than some song of blues genre?
SQL: SELECT song_name FROM song WHERE rating  <  (SELECT max(rating) FROM song WHERE genre_is  =  "blues")

Question: What is the name and country of origin of the artist who released a song that has "love" in its title?
SQL: SELECT T1.artist_name ,  T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.song_name LIKE "%love%"

Question: List the name and gender for all artists who released songs in March.
SQL: SELECT T1.artist_name ,  T1.gender FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.releasedate LIKE "%Mar%"

Question: What are the ids of songs that are available in either mp4 format or have resolution above 720?
SQL: SELECT f_id FROM files WHERE formats  =  "mp4" UNION SELECT f_id FROM song WHERE resolution  >  720

Question: List the names of all songs that have 4 minute duration or are in English.
SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages  =  "english"

Question: What is the language used most often in the songs?
SQL: SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1

Question: What is the language that was used most often in songs with resolution above 500?
SQL: SELECT artist_name FROM song WHERE resolution  >  500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1

Question: What are the names of artists who are Male and are from UK?
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" AND gender  =  "Male"

Question: Find the names of songs whose genre is modern or language is English.
SQL: SELECT song_name FROM song WHERE genre_is  =  "modern" OR languages  =  "english"

Question: Return the names of songs for which format is mp3 and resolution is below 1000.
SQL: SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.formats  =  "mp3" INTERSECT SELECT song_name FROM song WHERE resolution  <  1000

Question: Return the names of singers who are from UK and released an English song.
SQL: SELECT artist_name FROM artist WHERE country  =  "UK" INTERSECT SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name  =  T2.artist_name WHERE T2.languages  =  "english"

Question: What are the average rating and resolution of songs that are in Bangla?
SQL: SELECT avg(rating) ,  avg(resolution) FROM song WHERE languages  =  "bangla"

Question: What are the maximum and minimum resolution of songs whose duration is 3 minutes?
SQL: SELECT max(T2.resolution) ,  min(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id WHERE T1.duration LIKE "3:%"

Question: What are the maximum duration and resolution of songs grouped and ordered by languages?
SQL: SELECT max(T1.duration) ,  max(T2.resolution) ,  T2.languages FROM files AS T1 JOIN song AS T2 ON T1.f_id  =  T2.f_id GROUP BY T2.languages ORDER BY T2.languages