Was M3 produced by a cinematographer that M1 and M2 were edited by and starred and distributed by M4
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.editor.film M2 .
M3 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}