question: Were M5 and M6 influenced by a male writer of M0 , M1 , and M2 and influenced by a art director
query: SELECT count(*) WHERE {
  ?x0 ns:film.writer.film M0 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:people.person.gender ns:m.05zppz .
  ?x1 a ns:film.film_art_director .
  M5 ns:influence.influence_node.influenced_by ?x0 .
  M5 ns:influence.influence_node.influenced_by ?x1 .
  M6 ns:influence.influence_node.influenced_by ?x0 .
  M6 ns:influence.influence_node.influenced_by ?x1
  }