CREATE TABLE invoices (invoice_number NUMBER, invoice_date TIME, invoice_details CLOB)
CREATE TABLE orders (order_id NUMBER, customer_id NUMBER, order_status CLOB, date_order_placed TIME, order_details CLOB)
CREATE TABLE products (product_id NUMBER, product_name CLOB, product_details CLOB)
CREATE TABLE order_items (order_item_id NUMBER, product_id NUMBER, order_id NUMBER, order_item_status CLOB, order_item_details CLOB)
CREATE TABLE shipments (shipment_id NUMBER, order_id NUMBER, invoice_number NUMBER, shipment_tracking_number CLOB, shipment_date TIME, other_shipment_details CLOB)
CREATE TABLE customers (customer_id NUMBER, customer_name CLOB, customer_details CLOB)
CREATE TABLE shipment_items (shipment_id NUMBER, order_item_id NUMBER)

List the count and id of each product in all the orders.
SELECT COUNT(*), T3.product_id FROM orders AS T1 JOIN order_items AS T2 JOIN products AS T3 ON T1.order_id = T2.order_id AND T2.product_id = T3.product_id GROUP BY T3.product_id
SELECT COUNT(*), "T3"."product_id" FROM "orders" "T1" CROSS JOIN "products" "T3" JOIN "order_items" "T2" ON "T1"."order_id" = "T2"."order_id" AND "T2"."product_id" = "T3"."product_id" GROUP BY "T3"."product_id"