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