Were M2 and M5 written by M0 's director , executive produced by M3 and M4 , and directed by a film editor
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x1 a ns:film.editor .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.executive_produced_by M4 .
M2 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.executive_produced_by M3 .
M5 ns:film.film.executive_produced_by M4 .
M5 ns:film.film.written_by ?x0
}