<s>[INST] Write a SQL code to count the number of shops flagged as part of quality control.  [/INST] SELECT COUNT(*) AS total_shops_flagged_qc FROM order_transaction.transaction_detail_deprecated WHERE shop_quality_control_flag = 1; </s>