<s>[INST] Write a SQL code to calculate the total discount amount applied to Delivery Service (DS) charges from all orders.  [/INST] SELECT SUM(order_ds_discount) AS total_ds_discount_amount FROM order_transaction.transaction_detail_deprecated; </s>