Was M4 distributed by M5 and M6 and produced by a film producer that M1 , M2 , and M3 were written by
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3 .
M4 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M5 .
M4 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M6 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}