Were M3 and M4 directed by M2 's star , written by a costume designer , and produced by M1 's director
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x1 ns:film.director.film M1 .
?x2 ns:film.actor.film/ns:film.performance.film M2 .
M3 ns:film.film.directed_by ?x2 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.directed_by ?x2 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.written_by ?x0
}