What screenwriter that influenced M1 and M2 and was influenced by M3 was M4 's editor
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.writer .
?x0 ns:film.editor.film M4 .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced_by M3
}