Task: Text to Code
Input (English): Step 1: find the Document_Date of Documents table for which Document_Type_Code equals GV.
Step 2: For each row in Documents table, find the corresponding rows in Documents_with_Expenses table.
Step 3: find Document_Details of the results of step 2 whose Document_Type_Code equals SF.
Step 4: show the rows that are in both the results of step 1 and the results of step 3
Output (English): SELECT T1.Document_Date FROM Documents AS T1 WHERE T1.Document_Type_Code = "GV" INTERSECT SELECT T2.Document_Details FROM Documents AS T1 JOIN Documents_with_Expenses AS T2 ON T1.Document_ID = T2.Document_ID WHERE T1.Document_Type_Code = "SF"