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