Were M2 and M4 edited by M3 and directed by a screenwriter that M1 was edited by
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.editor.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.edited_by M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.edited_by M3
}