Were M2 and M3 directed by M1 's cinematographer , producer , and art director and produced by a film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 ns:film.cinematographer.film M1 .
?x1 ns:film.film_art_director.films_art_directed M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}