Was a costume designer influenced by M2 's actor and influenced by M1 's producer and director
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 ns:film.director.film M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
?x2 ns:film.actor.film/ns:film.performance.character M2
}