Was M2 directed by a person and edited by M0 's producer , writer , and cinematographer
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:people.person .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.edited_by ?x0
}