Task: Text to Code
Input (English): SQL: SELECT Count ( DISTINCT product_category_code ) FROM Products
Feedback: Substitute complaint type code and complaints table with product category code and products table .
Output (English): SELECT count(DISTINCT complaint_type_code) FROM complaints