Was M2 produced by a costume designer influenced by M1 and distributed by M3 , M4 , and M5
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:influence.influence_node.influenced_by M1 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M4 .
M2 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M5 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}