Question: Which coach has serviced in NBA for more than 10 years.
SQL: SELECT coachID FROM coaches WHERE lgID = 'NBA' GROUP BY coachID HAVING MAX(year) - MIN(year) > 10