Was a person influenced by a costume designer and director of M1 and influenced by M2 's male writer
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 ns:film.director.film M1 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x2 ns:film.writer.film M2 .
?x2 ns:people.person.gender ns:m.05zppz
}