Was M0 a male cinematographer , writer , and star of M1 and M2
SELECT count(*) WHERE {
M0 ns:film.actor.film/ns:film.performance.film M1 .
M0 ns:film.actor.film/ns:film.performance.film M2 .
M0 ns:film.cinematographer.film M1 .
M0 ns:film.cinematographer.film M2 .
M0 ns:film.writer.film M1 .
M0 ns:film.writer.film M2 .
M0 ns:people.person.gender ns:m.05zppz
}