Was M3 influenced by M2 's director and writer and influenced by a writer of M0 and M1
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x1 ns:film.director.film M2 .
?x1 ns:film.writer.film M2 .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1
}