db_id
stringclasses 31
values | schema
stringclasses 22
values | schemaComEx
stringclasses 22
values | question
stringlengths 18
181
| query
stringlengths 20
577
| answer
stringlengths 14
41.7k
⌀ | complexity
stringclasses 4
values | distinct
bool 2
classes | like
bool 2
classes | between
bool 2
classes | order_by
bool 2
classes | limit
bool 2
classes | grouby_by
bool 2
classes | having
bool 2
classes | single_join
bool 2
classes | multiple_join
bool 2
classes | multiple_select
bool 2
classes | intersect
bool 2
classes | except
bool 2
classes | union
bool 2
classes |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
college_1 | null | null | Find the first names and offices of all instructors who have taught some course and also find the course description. | SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the first names, office locations of all lecturers who have taught some course? | SELECT T2.emp_fname , T4.prof_office , T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the first names and offices of all instructors who have taught some course and the course description and the department name. | SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach? | SELECT T2.emp_fname , T4.prof_office , T3.crs_description , T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN professor AS T4 ON T2.emp_num = T4.emp_num JOIN department AS T5 ON T4.dept_code = T5.dept_code | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find names of all students who took some course and the course description. | SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the names of all students who took a class and the corresponding course descriptions? | SELECT T1.stu_fname , T1.stu_lname , T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find names of all students who took some course and got A or C. | SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the names of all students taking a course who received an A or C? | SELECT T1.stu_fname , T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the first names of all professors in the Accounting department who is teaching some course and the class room. | SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach? | SELECT T2.emp_fname , T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Accounting' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the first names and degree of all professors who are teaching some class in Computer Info. Systems department. | SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the different first names and highest degree attained for professors teaching in the Computer Information Systems department? | SELECT DISTINCT T2.emp_fname , T3.prof_high_degree FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num JOIN professor AS T3 ON T2.emp_num = T3.emp_num JOIN department AS T4 ON T4.dept_code = T3.dept_code WHERE T4.dept_name = 'Computer Info. Systems' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What is the last name of the student who got a grade A in the class with code 10018. | SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What is the last name of the student who received an A in the class with the code 10018? | SELECT T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'A' AND T2.class_code = 10018 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the first name and office of history professor who did not get a Ph.D. degree. | SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the first names and offices of history professors who don't have Ph.D.s? | SELECT T2.emp_fname , T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num = T2.emp_num JOIN department AS T3 ON T1.dept_code = T3.dept_code WHERE T3.dept_name = 'History' AND T1.prof_high_degree != 'Ph.D.' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the first names of professors who are teaching more than one class. | SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the first names of all professors who teach more than one class? | SELECT T2.emp_fname FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num = T2.emp_num GROUP BY T1.prof_num HAVING count(*) > 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the first names of students who took exactly one class. | SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What are the first names of student who only took one course? | SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num GROUP BY T2.stu_num HAVING count(*) = 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | Find the name of department that offers the class whose description has the word "Statistics". | SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What is the name of the department that offers a course that has a description including the word "Statistics"? | SELECT T2.dept_name FROM course AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.crs_description LIKE '%Statistics%' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What is the first name of the student whose last name starting with the letter S and is taking ACCT-211 class? | SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
college_1 | null | null | What is the first name of the student whose last name starts with the letter S and is taking ACCT-211? | SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211' AND T1.stu_lname LIKE 'S%' | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the name of the song that was released in the most recent year? | SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the name of the song that was released most recently? | SELECT song_name , releasedate FROM song ORDER BY releasedate DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the id of the longest song? | SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the id of the song that lasts the longest. | SELECT f_id FROM files ORDER BY duration DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the names of all English songs. | SELECT song_name FROM song WHERE languages = "english" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all songs in English? | SELECT song_name FROM song WHERE languages = "english" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the id of songs whose format is mp3. | SELECT f_id FROM files WHERE formats = "mp3" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the id of all the files in mp3 format? | SELECT f_id FROM files WHERE formats = "mp3" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | List the name and country of origin for all singers who have produced songs with rating above 9. | SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the different names and countries of origins for all artists whose song ratings are above 9? | SELECT DISTINCT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.rating > 9 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | List the file size and format for all songs that have resolution lower than 800. | SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the file sizes and formats for all songs with a resolution lower than 800? | SELECT DISTINCT T1.file_size , T1.formats FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T2.resolution < 800 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the name of the artist who produced the shortest song? | SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of the artists who sang the shortest song? | SELECT T1.artist_name FROM song AS T1 JOIN files AS T2 ON T1.f_id = T2.f_id ORDER BY T2.duration LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names and countries of origin for the artists who produced the top three highly rated songs. | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of the singers who sang the top 3 most highly rated songs and what countries do they hail from? | SELECT T1.artist_name , T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.rating DESC LIMIT 3 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | How many songs have 4 minute duration? | SELECT count(*) FROM files WHERE duration LIKE "4:%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the count of the songs that last approximately 4 minutes? | SELECT count(*) FROM files WHERE duration LIKE "4:%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | How many artists are from Bangladesh? | SELECT count(*) FROM artist WHERE country = "Bangladesh" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | How many Bangladeshi artists are listed? | SELECT count(*) FROM artist WHERE country = "Bangladesh" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the average rating of songs produced by female artists? | SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | How many songs, on average, are sung by a female artist? | SELECT avg(T2.rating) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the most popular file format? | SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the file format that is used by the most files. | SELECT formats FROM files GROUP BY formats ORDER BY COUNT (*) DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the names of the artists who are from UK and have produced English songs. | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of the artists that are from the UK and sang songs in English? | SELECT artist_name FROM artist WHERE country = "UK" INTERSECT SELECT artist_name FROM song WHERE languages = "english" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the id of songs that are available in mp4 format and have resolution lower than 1000. | SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the id of the files that are available in the format of mp4 and a resolution smaller than 1000? | SELECT f_id FROM files WHERE formats = "mp4" INTERSECT SELECT f_id FROM song WHERE resolution < 1000 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the country of origin of the artist who is female and produced a song in Bangla? | SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What countries are the female artists who sung in the language Bangla from? | SELECT T1.country FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T1.gender = "Female" AND T2.languages = "bangla" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the average duration of songs that have mp3 format and resolution below 800? | SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the average song duration for the songs that are in mp3 format and whose resolution below 800? | SELECT avg(T1.duration) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.formats = "mp3" AND T2.resolution < 800 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the number of artists for each gender? | SELECT count(*) , gender FROM artist GROUP BY gender | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | How many artists are male and how many are female? | SELECT count(*) , gender FROM artist GROUP BY gender | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the average rating of songs for each language? | SELECT avg(rating) , languages FROM song GROUP BY languages | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the average song rating for each language? | SELECT avg(rating) , languages FROM song GROUP BY languages | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Return the gender and name of artist who produced the song with the lowest resolution. | SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the gender and name of the artist who sang the song with the smallest resolution? | SELECT T1.gender , T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name ORDER BY T2.resolution LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | For each file format, return the number of artists who released songs in that format. | SELECT count(*) , formats FROM files GROUP BY formats | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | How many songs were released for each format? | SELECT count(*) , formats FROM files GROUP BY formats | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the distinct names of all songs that have a higher resolution than some songs in English. | SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = "english") | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the different names for all songs that have a higher resolution than English songs? | SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT min(resolution) FROM song WHERE languages = "english") | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all songs that have a lower rating than some song of blues genre? | SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = "blues") | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of the songs that have a lower rating than at least one blues song? | SELECT song_name FROM song WHERE rating < (SELECT max(rating) FROM song WHERE genre_is = "blues") | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the name and country of origin of the artist who released a song that has "love" in its title? | 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%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of the artists who released a song that has the word love in its title, and where are the artists from? | 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%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | List the name and gender for all artists who released songs in March. | 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%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names and genders of all artists who released songs in the month of March? | 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%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | List the names of all genres in alphabetical oder, together with its ratings. | SELECT g_name , rating FROM genre ORDER BY g_name | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all genres in alphabetical order, combined with its ratings? | SELECT g_name , rating FROM genre ORDER BY g_name | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Give me a list of the names of all songs ordered by their resolution. | SELECT song_name FROM song ORDER BY resolution | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all songs that are ordered by their resolution numbers? | SELECT song_name FROM song ORDER BY resolution | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the ids of songs that are available in either mp4 format or have resolution above 720? | SELECT f_id FROM files WHERE formats = "mp4" UNION SELECT f_id FROM song WHERE resolution > 720 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the ids of all songs that are available on mp4 or have a higher resolution than 720? | SELECT f_id FROM files WHERE formats = "mp4" UNION SELECT f_id FROM song WHERE resolution > 720 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | List the names of all songs that have 4 minute duration or are in English. | 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" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all songs that are approximately 4 minutes long or are in English? | 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" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the language used most often in the songs? | SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the languages that are used most often in songs? | SELECT languages FROM song GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the language that was used most often in songs with resolution above 500? | SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the name of the artist, for each language, that has the most songs with a higher resolution than 500? | SELECT artist_name FROM song WHERE resolution > 500 GROUP BY languages ORDER BY count(*) DESC LIMIT 1 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of artists who are Male and are from UK? | SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all male British artists? | SELECT artist_name FROM artist WHERE country = "UK" AND gender = "Male" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Find the names of songs whose genre is modern or language is English. | SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of the songs that are modern or sung in English? | SELECT song_name FROM song WHERE genre_is = "modern" OR languages = "english" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Return the names of songs for which format is mp3 and resolution is below 1000. | 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 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all songs that are in mp3 format and have a resolution lower than 1000? | 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 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | Return the names of singers who are from UK and released an English song. | 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" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the names of all singers that are from the UK and released a song in English? | 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" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the average rating and resolution of songs that are in Bangla? | SELECT avg(rating) , avg(resolution) FROM song WHERE languages = "bangla" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the average rating and resolution of all bangla songs? | SELECT avg(rating) , avg(resolution) FROM song WHERE languages = "bangla" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the maximum and minimum resolution of songs whose duration is 3 minutes? | 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:%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the maximum and minimum resolution of all songs that are approximately 3 minutes long? | 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:%" | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the maximum duration and resolution of songs grouped and ordered by languages? | 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 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language? | 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 | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre? | SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |
music_1 | null | null | What is the shortest and most poorly rated song for each genre, ordered alphabetically by genre? | SELECT min(T1.duration) , min(T2.rating) , T2.genre_is FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id GROUP BY T2.genre_is ORDER BY T2.genre_is | null | null | null | null | null | null | null | null | null | null | null | null | null | null | null |