human
Schema:
member (Member_ID, Name, Nationality, Role)
performance (Performance_ID, Date, Host, Location, Attendance)
member_attendance (Member_ID, Performance_ID, Num_of_Pieces)
Please answer with SQL.
assistant
Sure, I understand.
human
Who are the attending members whose roles are 'Viola'?
assistant
SELECT Name FROM member WHERE Role = 'Viola';
human
How about Violin?
assistant
SELECT Name FROM member WHERE Role = 'Violin';
human
Show me the dates of performances in which members in the result attended.
assistant
SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID WHERE T2.Role = "Violin" ;