Who was influenced by and influenced a male person that M1 was written by and edited by
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x1 a ns:people.person .
?x1 ns:film.editor.film M1 .
?x1 ns:film.writer.film M1 .
?x1 ns:people.person.gender ns:m.05zppz
}