human
Schema:
accounts (custid, name)
savings (custid, balance)
checking (custid, balance)
Please answer with SQL.
assistant
Sure, I understand.
human
How many savings accounts are there?
assistant
SELECT COUNT( custid ) FROM accounts;
human
What are their saving balances?
assistant
SELECT T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid;
human
Remove Brown's saving balance.
assistant
SELECT T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name != "Brown" ;