Task: Text to Code
Input (English): Step 1: For each row in head table, find the corresponding rows in management table.
Step 2: find born_state of the results of step 1 whose temporary_acting equals Treasury.
Step 3: find born_state of the results of step 1 whose temporary_acting equals Homeland Security.
Step 4: show the rows that are in both the results of step 2 and the results of step 3
Output (English): SELECT T1.born_state FROM head AS T1 JOIN management AS T2 ON T1.head_ID = T2.head_ID WHERE T2.temporary_acting = "Treasury" INTERSECT SELECT T1.born_state FROM head AS T1 JOIN management AS T2 ON T1.head_ID = T2.head_ID WHERE T2.temporary_acting = "Homeland Security"