Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE bank ( branch_id number, bname text, no_of_customers number, city text, state text )
TABLE: CREATE TABLE loan ( loan_id text, loan_type text, cust_id text, branch_id text, amount number )
TABLE: CREATE TABLE customer ( cust_id text, cust_name text, acc_type text, acc_bal number, no_of_loans number, credit_score number, branch_id number, state text )

### Question ###
Find the name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100.

### Accurate 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