Were M2 and M3 influenced by M1 's cinematographer , editor , and producer and influenced by a costume designer
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x1 ns:film.cinematographer.film M1 .
?x1 ns:film.editor.film M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
M2 ns:influence.influence_node.influenced_by ?x0 .
M2 ns:influence.influence_node.influenced_by ?x1 .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1
}