Were M2 and M5 edited by M3 and M4 , edited by a film editor , and directed by a film 's editor
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x1 ns:film.editor.film ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.edited_by M3 .
M2 ns:film.film.edited_by M4 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.edited_by M3 .
M5 ns:film.film.edited_by M4
}