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
Which cities have a branch?
assistant
SELECT distinct city FROM branch;
human
How many branches does London have?
assistant
SELECT COUNT( branch_id ) FROM branch WHERE city = 'London';
human
How many branches does Oxford have?
assistant
SELECT COUNT( Branch_ID ) FROM branch WHERE city = "Oxford" ;