Task: Text to Code
Input (English): SQL: SELECT T2.active_from_date FROM Customers AS T1 JOIN Customer_Contact_Channels AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Tillman Ernser" ORDER BY T2.active_to_date Desc LIMIT 1
Feedback: Replace active from date with active to date . find first channel code of customer contact channels table in descending order of active to date .
Output (English): SELECT max(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id  =  t2.customer_id WHERE t1.customer_name  =  "Tillman Ernser"