CREATE TABLE Document_Functional_Areas (document_code VARCHAR, functional_area_code VARCHAR)
CREATE TABLE Roles (role_code VARCHAR, role_description VARCHAR)
CREATE TABLE Document_Structures (document_structure_code VARCHAR, parent_document_structure_code VARCHAR, document_structure_description VARCHAR)
CREATE TABLE Functional_Areas (functional_area_code VARCHAR, parent_functional_area_code VARCHAR, functional_area_description VARCHAR)
CREATE TABLE Images (image_id INT, image_alt_text VARCHAR, image_name VARCHAR, image_url VARCHAR)
CREATE TABLE Documents (document_code VARCHAR, document_structure_code VARCHAR, document_type_code VARCHAR, access_count INT, document_name VARCHAR)
CREATE TABLE Document_Sections (section_id INT, document_code VARCHAR, section_sequence INT, section_code VARCHAR, section_title VARCHAR)
CREATE TABLE Users (user_id INT, role_code VARCHAR, user_name VARCHAR, user_login VARCHAR, password VARCHAR)
CREATE TABLE Document_Sections_Images (section_id INT, image_id INT)

Bar graph to show the total number from different role code, and sort from high to low by the bar.
SELECT role_code, COUNT(*) FROM Users GROUP BY role_code ORDER BY role_code DESC
SELECT "role_code", COUNT(*) FROM "Users" GROUP BY "role_code" ORDER BY "role_code" DESC NULLS LAST