Were M2 and M7 written by a male director of M1 and directed by M3 , M4 , M5 , and M6
SELECT count(*) WHERE {
?x0 ns:film.director.film M1 .
?x0 ns:people.person.gender ns:m.05zppz .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.directed_by M5 .
M2 ns:film.film.directed_by M6 .
M2 ns:film.film.written_by ?x0 .
M7 ns:film.film.directed_by M3 .
M7 ns:film.film.directed_by M4 .
M7 ns:film.film.directed_by M5 .
M7 ns:film.film.directed_by M6 .
M7 ns:film.film.written_by ?x0
}