human
Schema:
artist (Artist_ID, Name, Country, Year_Join, Age)
exhibition (Exhibition_ID, Year, Theme, Artist_ID, Ticket_Price)
exhibition_record (Exhibition_ID, Date, Attendance)
Please answer with SQL.
assistant
Sure, I understand.
human
Show all artists.
assistant
SELECT * FROM artist;
human
Just show those from United States.
assistant
SELECT * FROM artist WHERE country = 'United States';
human
What is their average age?
assistant
SELECT AVG ( age ) FROM artist WHERE country = 'United States';
human
Also show their minimum age.
assistant
SELECT AVG ( age ) , MIN( age ) FROM artist WHERE country = "United States" ;