Was M2 a costume designer influenced by M0 's writer and influenced by a film producer
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x1 a ns:film.producer .
M2 a ns:film.film_costumer_designer .
M2 ns:influence.influence_node.influenced_by ?x0 .
M2 ns:influence.influence_node.influenced_by ?x1
}