CREATE TABLE management (department_ID INT, head_ID INT, temporary_acting TEXT)
CREATE TABLE head (head_ID INT, name TEXT, born_state TEXT, age FLOAT)
CREATE TABLE department (Department_ID INT, Name TEXT, Creation TEXT, Ranking INT, Budget_in_Billions FLOAT, Num_Employees FLOAT)

Show the name and number of employees for the departments managed by heads whose temporary acting value is 'Yes', and list total number from high to low order.
SELECT Name, SUM(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 SUM(Num_Employees) DESC
SELECT "Name", SUM("Num_Employees") FROM "department" AS "T1" JOIN "management" AS "T2" ON "T1"."department_ID" = "T2"."department_ID" AND "T2"."temporary_acting" = 'Yes' GROUP BY "Name" ORDER BY SUM("Num_Employees") DESC NULLS LAST