Task: Text to Code
Input (English): Step 1: For each row in Templates table, find corresponding rows in Ref_Template_Types table and in Documents table.
Step 2: find Document_ID, Document_Name, Template_Type_Description of the results of step 1
Output (English): SELECT T3.Document_ID , T3.Document_Name , T1.Template_Type_Description FROM Ref_Template_Types AS T1 JOIN Templates AS T2 ON T1.Template_Type_Code = T2.Template_Type_Code JOIN Documents AS T3 ON T2.Template_ID = T3.Template_ID