What was written by a person that M1 was influenced by , M2 influenced , and a screenwriter was influenced by
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:people.person .
?x1 ns:influence.influence_node.influenced ?x2 .
?x1 ns:influence.influence_node.influenced M1 .
?x1 ns:influence.influence_node.influenced_by M2 .
?x2 a ns:film.writer
}