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