CREATE TABLE loan (loan_ID VARCHAR, loan_type VARCHAR, cust_ID VARCHAR, branch_ID VARCHAR, amount INT)
CREATE TABLE customer (cust_ID VARCHAR, cust_name VARCHAR, acc_type CHAR, acc_bal INT, no_of_loans INT, credit_score INT, branch_ID INT, state VARCHAR)
CREATE TABLE bank (branch_ID INT, bname VARCHAR, no_of_customers INT, city VARCHAR, state VARCHAR)

Draw a bar chart for what is the average account balance of customers with credit score below 50 for the different account types?
SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type
SELECT "acc_type", AVG("acc_bal") FROM "customer" WHERE "credit_score" < 50 GROUP BY "acc_type"