Database: loan_1
Question: What are the names of the different bank branches, and what are their total loan amounts?
SQL:
SELECT sum(amount) ,  T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id  =  T2.branch_id GROUP BY T1.bname