Which costume designer that M2 influenced was M1 's writer
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:film.writer.film M1 .
?x0 ns:influence.influence_node.influenced_by M2
}