https://leetcode.com/problems/number-of-unique-subjects-taught-by-each-teacher/description/


Success


```sql
SELECT table_1.teacher_id, COUNT(table_1.subject_id) AS cnt 
FROM (SELECT DISTINCT teacher_id, subject_id FROM Teacher) table_1
GROUP BY table_1.teacher_id
;
```
