Below is the list of tables from the database along with their columns and datatype. Need to generate an accurate SQL query for the question.
Only use the columns present in the respective table. Only use the columns which are required to generate the SQL query. Only use table joins if required and not otherwise.

### Tables ###
TABLE: CREATE TABLE department ( Department_ID int, Name text, Creation text, Ranking int, Budget_in_Billions real, Num_Employees real )
TABLE: CREATE TABLE head ( head_ID int, name text, born_state text, age real )
TABLE: CREATE TABLE management ( department_ID int, head_ID int, temporary_acting text )

### Question ###
Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes' by a bar chart, order by the y-axis in asc.

### Accurate SQL ###

SELECT Name, AVG(Num_Employees) FROM department AS T1 JOIN management AS T2 ON T1.department_ID = T2.department_ID WHERE T2.temporary_acting = 'Yes' GROUP BY Name ORDER BY AVG(Num_Employees)