Task: Text to Code
Input (English): Step 1: For each row in Ref_Product_Categories table, find the corresponding rows in Products table.
Step 2: find the number of rows in the results of step 1 whose Products's product_category_code equals Spices and product_category_description greater than 1000
Output (English): SELECT Count ( * ) FROM Ref_Product_Categories AS T1 JOIN Products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_category_code = "Spices" AND T1.product_category_description > 1000