CREATE TABLE Shipments (shipment_id NUMBER, order_id NUMBER, invoice_number NUMBER, shipment_tracking_number VARCHAR2, shipment_date DATETIME, other_shipment_details VARCHAR2)
CREATE TABLE Invoices (invoice_number NUMBER, invoice_date DATETIME, invoice_details VARCHAR2)
CREATE TABLE Orders (order_id NUMBER, customer_id NUMBER, order_status VARCHAR2, date_order_placed DATETIME, order_details VARCHAR2)
CREATE TABLE Order_Items (order_item_id NUMBER, product_id NUMBER, order_id NUMBER, order_item_status VARCHAR2, order_item_details VARCHAR2)
CREATE TABLE Products (product_id NUMBER, product_name VARCHAR2, product_details VARCHAR2)
CREATE TABLE Shipment_Items (shipment_id NUMBER, order_item_id NUMBER)
CREATE TABLE Customers (customer_id NUMBER, customer_name VARCHAR2, customer_details VARCHAR2)

For each customer who has at least two orders, find the customer name and number of orders made. Show a pie chart.
SELECT customer_name, COUNT(*) FROM Orders AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id
SELECT "customer_name", COUNT(*) FROM "Orders" "T1" JOIN "Customers" "T2" ON "T1"."customer_id" = "T2"."customer_id" GROUP BY "T2"."customer_id"