Write SQL query to solve given problem: Which coach has serviced in NBA for more than 10 years.. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT coachID FROM coaches WHERE lgID = 'NBA' GROUP BY coachID HAVING MAX(year) - MIN(year) > 10