<s>[INST] Write a SQL code to determine the earliest date when shop quality control was assigned.  [/INST] SELECT MIN(shop_qc_assign_at) AS earliest_qc_assign_date FROM order_transaction.transaction_detail_deprecated; </s>