Task: Text to Code
Input (English): Step 1: For each row in Documents table, find the corresponding rows in Documents_with_Expenses table.
Step 2: find Document_Type_Code, Document_Details, Documents's Document_ID of the results of step 1
Output (English): SELECT T1.Document_Type_Code , T2.Document_Details , T1.Document_ID FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.Document_ID = T2.Document_ID