human
Schema:
accounts (custid, name)
savings (custid, balance)
checking (custid, balance)
Please answer with SQL.
assistant
Sure, I understand.
human
what is the savings balance of id 1? | Did you mean the saving balance of the customer with id 1? | yes
assistant
SELECT balance FROM savings WHERE custid = 1;
human
what is the total checking and saving balance of all accounts?
assistant
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ;