Were M3 and M4 directed by M2 's star , writer , and art director and directed by M0 's female star
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:people.person.gender ns:m.02zsn .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:film.film_art_director.films_art_directed M2 .
?x1 ns:film.writer.film M2 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.directed_by ?x1 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.directed_by ?x1
}