human
Schema:
artist (Artist_ID, Artist, Age, Famous_Title, Famous_Release_date)
volume (Volume_ID, Volume_Issue, Issue_Date, Weeks_on_Top, Song, Artist_ID)
music_festival (ID, Music_Festival, Date_of_ceremony, Category, Volume, Result)
Please answer with SQL.
assistant
Sure, I understand.
human
List all artists.
assistant
SELECT DISTINCT artist FROM Artist;
human
Only list those aged 32 or older.
assistant
SELECT DISTINCT artist FROM Artist WHERE age >= 32;
human
Show the information for volumes associated with these artists.
assistant
SELECT * FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32;
human
Only show song names.
assistant
SELECT T2.Song FROM artist AS T1 JOIN volume AS T2 ON T1.Artist_ID = T2.Artist_ID WHERE T1.age >= 32 ;