This problem is paper-only - see explanation for the canonical SQL solution. (LeetCode classic 181.)
Given:
Employee(id, name, salary, manager_id) -- manager_id is nullable, FKs Employee.id
Return the names of employees whose salary is strictly greater than their direct manager's salary. Order alphabetically.
For the auto-grader: implement employeesEarningMoreThanManager(employees).