Was M2 distributed by M0 's writer and produced by a film 's editor
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x1 ns:film.editor.film ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}