Was M2 edited by M1 's editor and costume designer and produced by M0 's writer and cinematographer
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.writer.film M0 .
?x1 ns:film.editor.film M1 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}