question: Were M3 , M4 , and M5 influenced by a film producer that M1 and M2 were directed by and written by
query: SELECT count(*) WHERE {
  ?x0 a ns:film.producer .
  ?x0 ns:film.director.film M1 .
  ?x0 ns:film.director.film M2 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  M3 ns:influence.influence_node.influenced_by ?x0 .
  M4 ns:influence.influence_node.influenced_by ?x0 .
  M5 ns:influence.influence_node.influenced_by ?x0
  }