<s>[INST] Write a SQL code to retrieve the total number of orders placed in each month.  [/INST] SELECT order_month, COUNT(*) AS total_orders FROM order_transaction.transaction_detail_deprecated GROUP BY order_month; </s>