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

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" "T2" JOIN "head" "T1" ON "T1"."head_id" = "T2"."head_id" WHERE "T2"."temporary_acting" = 'Yes'