Were M2 and M5 edited by a film editor that directed M1 , written by M3 , and directed by M4
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x0 ns:film.director.film M1 .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.written_by M3 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.written_by M3
}