Task: Text to Code
Input (English): Step 1: For each row in Policies table, find corresponding rows in Customers table and in Claim_Headers table.
Step 2: find Customer_Details of the results of step 1 whose Claim_Status_Code equals Deputy
Output (English): SELECT T1.Customer_Details FROM Customers AS T1 JOIN Policies AS T2 ON T1.Customer_ID = T2.Customer_ID JOIN Claim_Headers AS T3 ON T2.Policy_ID = T3.Policy_ID WHERE T3.Claim_Status_Code = "Deputy"