<s>[INST] Write a SQL code to count the number of shops with non-null photo entries.  [/INST] SELECT COUNT(*) AS total_shops_with_photos FROM order_transaction.transaction_detail_deprecated WHERE shop_photo IS NOT NULL; </s>