Task: Text to Code
Input (English): Step 1: find the Document_ID of Documents table.
Step 2: For each row in Documents table, find corresponding rows in Ref_Document_Types table and in Documents_with_Expenses table.
Step 3: find Documents_with_Expenses's Document_ID of the results of step 2 whose Document_Type_Name equals CV.
Step 4: show the rows that are in the results of step 1 but not in the results of step 3
Output (English): SELECT T1.Document_ID FROM Documents AS T1 EXCEPT SELECT T3.Document_ID FROM Ref_Document_Types AS T2 JOIN Documents AS T1 ON T2.Document_Type_Code = T1.Document_Type_Code JOIN Documents_with_Expenses AS T3 ON T1.Document_ID = T3.Document_ID WHERE T2.Document_Type_Name = "CV"