select distinct p.firstname, lastname from person p where p.gender = 'F' and (select count(*) from filmparticipation fp where fp.personid = p.personid and fp.parttype = 'director') > 5 and exists (select * from person p2 where all (select * from filmparticipation fp, filmparticipation fp2, filmitem f where p.personid = fp.personid and p2.personid = fp2.personid and f.filmid = fp2.filmid and f.filmid = fp.filmid and fp.parttype = 'director' and fp2.parttype = 'cast'));