What was directed by a film director that M2 was influenced by and influenced and written by M0
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.written_by M0 .
?x1 a ns:film.director .
?x1 ns:influence.influence_node.influenced M2 .
?x1 ns:influence.influence_node.influenced_by M2
}