Was M3 directed by a costume designer that M1 was influenced by and M2 influenced and written by M4
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.written_by M4
}