Task: Text to Code
Input (English): Compute the average active time span of contact channels.
Output (English): SELECT avg(active_to_date - active_from_date) FROM customer_contact_channels