CREATE TABLE head (head_id DECIMAL, name TEXT, born_state TEXT, age DECIMAL)
CREATE TABLE department (department_id DECIMAL, name TEXT, creation TEXT, ranking DECIMAL, budget_in_billions DECIMAL, num_employees DECIMAL)
CREATE TABLE management (department_id DECIMAL, head_id DECIMAL, temporary_acting TEXT)

What are the distinct ages of the heads who are acting?
SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id = T2.head_id WHERE T2.temporary_acting = 'Yes'
SELECT DISTINCT "T1"."age" FROM "management" AS "T2" JOIN "head" AS "T1" ON "T1"."head_id" = "T2"."head_id" WHERE "T2"."temporary_acting" = 'Yes'