Was M2 edited by M1 's executive producer and producer , written by a film producer , and written by M3 and M4
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4
}