Was M2 produced by , directed by , and edited by a cinematographer that M1 was produced and written by
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.producer.film|ns:film.production_company.films M1 .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}