Which film producer that M3 's producer and writer was influenced by and M1 influenced was M2 's costume designer
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.producer .
?x0 ns:film.film_costumer_designer.costume_design_for_film M2 .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M3 .
?x1 ns:film.writer.film M3
}