What is the total in the case when there are more than 4 associate professors, 5 lecturers and fewer professors than 40?
CREATE TABLE "ntua_academic_staff_per_school" (
  "lecturers" real,
  "associate_professors" real,
  "assistant_professors" real,
  "professors" real,
  "total" real
);
SELECT COUNT("total") FROM "ntua_academic_staff_per_school" WHERE "associate_professors">4 AND "lecturers"=5 AND "professors"<40;