question: Was a screenwriter that influenced M1 and was influenced by M2 M3 's costume designer
query: SELECT count(*) WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:film.film_costumer_designer.costume_design_for_film M3 .
  ?x0 ns:influence.influence_node.influenced M1 .
  ?x0 ns:influence.influence_node.influenced_by M2
  }