Was M0 a cinematographer that M2 was written by , starred , and was edited by
SELECT count(*) WHERE {
M0 a ns:film.cinematographer .
M0 ns:film.actor.film/ns:film.performance.film M2 .
M0 ns:film.editor.film M2 .
M0 ns:film.writer.film M2
}