human
Schema:
accounts (custid, name)
savings (custid, balance)
checking (custid, balance)
Please answer with SQL.
assistant
Sure, I understand.
human
How many balance of customer id 1? | Do you want the saving balance of the customer with id 1? | Yes
assistant
SELECT balance FROM savings WHERE custid = 1;
human
Find the savings balance of Wang?
assistant
SELECT T2.balance FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T1.name = "Wang" ;