<s>[INST] Write a SQL code to calculate the total Last-mile Service (LS) cost incurred by merchants for all orders.  [/INST] SELECT SUM(order_dd_discount_exclude_vat) AS total_last_mile_service_cost FROM order_transaction.transaction_detail_deprecated; </s>