Were M2 and M5 distributed by a cinematographer , produced by M3 and M4 , and produced by a employee of M1
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x1 ns:people.person.employment_history/ns:business.employment_tenure.company 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 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M5 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M4
}