Were M3 and M4 executive produced by , edited by , and written by a film producer that M1 and M2 were written by
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x0
}