How many students were taking classes in each semester and year?
select semester, year, count(*) from takes group by semester, year
Which one had the fewest?
select semester, year from takes group by semester, year order by count(*) limit 1