Did a male cinematographer , art director , writer , and star of M0 and M1 write M2
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.cinematographer.film M1 .
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.film_art_director.films_art_directed M1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:people.person.gender ns:m.05zppz
}