CREATE TABLE department (dept_code CLOB, dept_name CLOB, school_code CLOB, emp_num NUMBER, dept_address CLOB, dept_extension CLOB)
CREATE TABLE professor (emp_num NUMBER, dept_code CLOB, prof_office CLOB, prof_extension CLOB, prof_high_degree CLOB)
CREATE TABLE course (crs_code CLOB, dept_code CLOB, crs_description CLOB, crs_credit NUMBER)
CREATE TABLE student (stu_num NUMBER, stu_lname CLOB, stu_fname CLOB, stu_init CLOB, stu_dob TIME, stu_hrs NUMBER, stu_class CLOB, stu_gpa NUMBER, stu_transfer NUMBER, dept_code CLOB, stu_phone CLOB, prof_num NUMBER)
CREATE TABLE class (class_code CLOB, crs_code CLOB, class_section CLOB, class_time CLOB, class_room CLOB, prof_num NUMBER)
CREATE TABLE employee (emp_num NUMBER, emp_lname CLOB, emp_fname CLOB, emp_initial CLOB, emp_jobcode CLOB, emp_hiredate TIME, emp_dob TIME)
CREATE TABLE enroll (class_code CLOB, stu_num NUMBER, enroll_grade CLOB)

How many students are enrolled in some classes that are taught by an accounting professor?
SELECT COUNT(*) FROM class AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code WHERE T4.dept_name = 'Accounting'
SELECT COUNT(*) FROM "class" "T1" JOIN "enroll" "T2" ON "T1"."class_code" = "T2"."class_code" JOIN "course" "T3" ON "T1"."crs_code" = "T3"."crs_code" JOIN "department" "T4" ON "T3"."dept_code" = "T4"."dept_code" AND "T4"."dept_name" = 'Accounting'