How many hall of famers both played and coached in the league?
hall of famers refers to hofID; both played and coached means playerID is not NULL and coachID is not NULL;
SELECT COUNT(playerID) FROM Master WHERE hofID IS NOT NULL AND playerID IS NOT NULL AND coachID IS NOT NULL