Did M3 's art director and cinematographer direct M4 and M5 , write M0 and M1 , and produce M2
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M3 .
?x0 ns:film.director.film M4 .
?x0 ns:film.director.film M5 .
?x0 ns:film.film_art_director.films_art_directed M3 .
?x0 ns:film.producer.film|ns:film.production_company.films M2 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1
}