Task: Text to Code
Input (English): Step 1: For each row in Ref_Shipping_Agents table, find the corresponding rows in Documents table.
Step 2: find document_id, document_type_code of the results of step 1 whose shipping_agent_name equals done.
Step 3: find document_id, document_type_code of the results of step 1 whose shipping_agent_name equals USPS.
Step 4: show the rows that are in both the results of step 2 and the results of step 3
Output (English): SELECT T2.document_id , T2.document_type_code FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T1.shipping_agent_code = T2.shipping_agent_code WHERE T1.shipping_agent_name = "done" INTERSECT SELECT T2.document_id , T2.document_type_code FROM Ref_Shipping_Agents AS T1 JOIN Documents AS T2 ON T1.shipping_agent_code = T2.shipping_agent_code WHERE T1.shipping_agent_name = "USPS"