CREATE TABLE "faculty" (
  "department" text,
  "head" text,
  "full_professors" real,
  "honorary_professors" real,
  "lecturers" real
);

Question: How many full professors work under Hartmut Kliemt with more than 0 lecturers?
SQL: SELECT COUNT("full_professors") FROM "faculty" WHERE "head"='hartmut kliemt' AND "lecturers">0;

Question: What is the least amount of lecturers in the accounting department with less than 5 full professors?
SQL: SELECT MIN("lecturers") FROM "faculty" WHERE "department"='accounting' AND "full_professors"<5;

Question: What is the average number of honorary professors in the economics department with 1 lecturer?
SQL: SELECT AVG("honorary_professors") FROM "faculty" WHERE "lecturers"=1 AND "department"='economics';