Task: Text to Code
Input (English): What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
Output (English): SELECT DISTINCT T1.creation FROM department AS T1 JOIN management AS T2 ON T1.department_id  =  T2.department_id JOIN head AS T3 ON T2.head_id  =  T3.head_id WHERE T3.born_state  =  'Alabama'