SELECT * FROM tdepartment WHERE (SELECT COUNT(temployee.*) FROM temployee,teducation WHERE
dfdepartment = tdepartment.dfobj AND
teducation.dfemployee = temployee.dfobj
) > (SELECT COUNT(*) FROM temployee WHERE
dfdepartment = tdepartment.dfobj AND
dfobj NOT IN (SELECT dfemployee FROM teducation)
);