Were M2 , M3 , and M4 distributed by a cinematographer and produced by M1 's cinematographer and star
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.cinematographer.film M1 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}