Who was a screenwriter that a star and writer of M3 influenced and M2 was influenced by
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.writer .
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
?x1 ns:film.writer.film M3
}