What are the names of the different bank branches, and what are their total loan amounts?
select sum(amount), t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id group by t1.bname