Who influenced M1 and M2 , was influenced by M3 , and was influenced by M5 's male editor
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M3 .
?x1 ns:film.editor.film M5 .
?x1 ns:people.person.gender ns:m.05zppz
}