select course_id, course_name, sum(case when time(in_datetime)<'19:00:00' and time(out_datetime)>'19:00:59' then 1 when time(in_datet...