Were M3 and M5 executive produced by M4 and directed by a film editor that wrote M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.executive_produced_by M4 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.executive_produced_by M4
}