Task: Text to Code
Input (English): SQL: SELECT Avg ( active_from_date ) FROM Customer_Contact_Channels
Feedback: Find average difference of active to date to active from date .
Output (English): SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels