Were M3 , M4 , and M5 directed , edited , and written by a costume designer that M1 and M2 were directed by
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:film.director.film M1 .
?x0 ns:film.director.film M2 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.edited_by ?x0 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.written_by ?x0
}