Task: Text to Code
Input (English): SQL: SELECT DISTINCT age FROM head
Feedback: Make sure to find only for the one with acting .
Output (English): SELECT DISTINCT T1.age FROM management AS T2 JOIN head AS T1 ON T1.head_id  =  T2.head_id WHERE T2.temporary_acting  =  'Yes'