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
How many attendees are there for the performances?
assistant
SELECT Attendance FROM performance;
human
What are the distinct locations of each performance?
assistant
SELECT LOCATION FROM performance GROUP BY LOCATION;
human
How many performances are there at each location?
assistant
SELECT LOCATION , COUNT( * ) FROM performance GROUP BY LOCATION ;