Was M3 produced by M4 , M5 , and M6 and written by a producer and executive producer of M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.producer.films_executive_produced M2 .
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M1 .
?x0 ns:film.producer.film|ns:film.production_company.films M2 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M5 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M6 .
M3 ns:film.film.written_by ?x0
}