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