human
Schema:
member (Member_ID, Card_Number, Name, Hometown, Level)
branch (Branch_ID, Name, Open_year, Address_road, City, membership_amount)
membership_register_branch (Member_ID, Branch_ID, Register_Year)
purchase (Member_ID, Branch_ID, Year, Total_pounds)
Please answer with SQL.
assistant
Sure, I understand.
human
What are the names for the top three membership branches
assistant
SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3;
human
How many memberships do these branches have?
assistant
SELECT membership_amount FROM branch ORDER BY membership_amount DESC LIMIT 3 ;