CREATE TABLE head (head_id VARCHAR2, born_state VARCHAR2)
CREATE TABLE department (creation VARCHAR2, department_id VARCHAR2)
CREATE TABLE management (department_id VARCHAR2, head_id VARCHAR2)

What are the distinct creation years of the departments managed by a secretary born in state 'Alabama'?
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'
SELECT DISTINCT "T1"."creation" FROM "department" "T1" JOIN "management" "T2" ON "T1"."department_id" = "T2"."department_id" JOIN "head" "T3" ON "T2"."head_id" = "T3"."head_id" AND "T3"."born_state" = 'Alabama'