Who influenced M1 's writer and was influenced by M2 's director and star
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 ns:film.writer.film M1 .
?x2 ns:film.actor.film/ns:film.performance.film M2 .
?x2 ns:film.director.film M2
}