Write a query to display EmployeeID, FirstName, LastName, Salary, DepartmentID, DepartmentName, NumberOfSubordinates of each employee who manages at least one other employee or who has a Salary greater than 10000. The NumberOfSubordinates is the number of employees that he/she manages. Display the results in descending order of NumberOfSubordinates, then in ascending order of LastName for employees having the same NumberOfSubordinates as follows:
EmployeeID FirstName LastName Salary DepartmentID DepartmentName NumberOfSubordinates
100 Steven King 24000 90 Executive 13
121 Adam Fripp 8200 50 Shipping 8
122 Payam Kaufling 7900 50 Shipping 8
124 Kevin Mourgos 5800 50 Shipping 8
123 Shanta Vollman 6500 50 Shipping 8
120 Matthew Weiss 8000 50 Shipping 8
148 Gerald Cambrault 11000 80 Sales 6
147 Alberto Errazuriz 12000 80 Sales 6
146 Karen Partners 13500 80 Sales 6
145 John Russell 14000 80 Sales 6
149 Eleni Zlotkey 10500 80 Sales 6
108 Nancy Greenberg 12000 100 Finance 5
114 Den Raphaely 11000 30 Purchasing 5
103 Alexander Hunold 9000 60 IT 4
102 Lex De Haan 17000 90 Executive 1
101 Neena Kochhar 17000 90 Executive 1
174 Ellen Abel 11000 80 Sales 0
168 Lisa Ozer 11500 80 Sales 0
162 Clara Vishney 10500 80 Sales 0