CREATE TABLE loan (branch_id VARCHAR(255), cust_id VARCHAR(255), amount INTEGER); CREATE TABLE bank (bname VARCHAR(255), branch_id VARCHAR(255)); CREATE TABLE customer (cust_id VARCHAR(255), credit_score INTEGER)
Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.
    
SQL: SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1