Who did M1 influence and a screenwriter that influenced M3 and was influenced by M4 influence
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x1 a ns:film.writer .
?x1 ns:influence.influence_node.influenced M3 .
?x1 ns:influence.influence_node.influenced_by M4
}