Did a screenwriter influenced by M2 , influenced by a screenwriter , and influenced by a costume designer write M1
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.writer.film M1 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x1 a ns:film.film_costumer_designer .
?x2 a ns:film.writer
}