Were M2 and M4 directed by a male writer and art director of M0 and written by M3
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.gender ns:m.05zppz .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.written_by M3
}