SELECT * FROM dbo.AWEmpAncestors(287)
ORDER BY distance
