CREATE TABLE bank (branch_ID INT, bname VARCHAR, no_of_customers INT, city VARCHAR, state VARCHAR)
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)

What is the average account balance of customers with credit score below 50 for the different account types Visualize by bar chart, and order by the names in ascending please.
SELECT acc_type, AVG(acc_bal) FROM customer WHERE credit_score < 50 GROUP BY acc_type ORDER BY acc_type
SELECT "acc_type", AVG("acc_bal") FROM "customer" WHERE "credit_score" < 50 GROUP BY "acc_type" ORDER BY "acc_type" NULLS FIRST