Were M4 and M5 produced by a actor of M0 , M1 , and M2 and edited by a costume designer
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M0 .
?x0 ns:film.actor.film/ns:film.performance.character M1 .
?x0 ns:film.actor.film/ns:film.performance.character M2 .
?x1 a ns:film.film_costumer_designer .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}