Count the number of schools that have had basketball matches.
SELECT count(DISTINCT school_id) FROM basketball_match
number of schools that have had basketball matches refers to COUNT(DISTINCT school_id);