Task: Text to Code
Input (English): Step 1: For each row in Templates table, find the corresponding rows in Documents table.
Step 2: find Document_ID, Date_Effective_To of the results of step 1 whose Document_Name equals Welcome to NY
Output (English): SELECT T2.Document_ID , T1.Date_Effective_To FROM Templates AS T1 JOIN Documents AS T2 ON T1.Template_ID = T2.Template_ID WHERE T2.Document_Name = "Welcome to NY"