<s>[INST] Write a SQL code to count the number of orders for each unique payment type (e.g., cash, credit card, etc.).  [/INST] SELECT order_payment_type, COUNT(*) AS total_orders FROM order_transaction.transaction_detail_deprecated GROUP BY order_payment_type; </s>