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