Was M2 distributed by M3 , M4 , and M5 , distributed by a cinematographer , and produced by a child of M1
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M1 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M5 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}