Was M4 edited by M3 's costume designer and written by a writer of M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M3 .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.written_by ?x0
}