Were M2 and M4 produced by M3 and produced by a screenwriter that M1 's star and costume designer influenced
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies M3
}