human
Schema:
accounts (custid, name)
savings (custid, balance)
checking (custid, balance)
Please answer with SQL.
assistant
Sure, I understand.
human
What account has the maximum checking balance?
assistant
SELECT custid FROM checking WHERE balance = ( SELECT MAX( balance ) FROM checking ) ;