Did M5 's cinematographer and star write M3 and M4 , edit M0 , and edit M1 and M2
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M5 .
?x0 ns:film.cinematographer.film M5 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.editor.film M2 .
?x0 ns:film.writer.film M3 .
?x0 ns:film.writer.film M4
}