What costume designer influenced M1 and M2 , was influenced by M3 , and was influenced by M5 's male director
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film_costumer_designer .
?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.director.film M5 .
?x1 ns:people.person.gender ns:m.05zppz
}