question: Who influenced a writer of M1 , M2 , M3 , and M4 and was influenced by M5 's cinematographer and director
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:influence.influence_node.influenced ?x1 .
  ?x0 ns:influence.influence_node.influenced_by ?x2 .
  ?x1 ns:film.writer.film M1 .
  ?x1 ns:film.writer.film M2 .
  ?x1 ns:film.writer.film M3 .
  ?x1 ns:film.writer.film M4 .
  ?x2 ns:film.cinematographer.film M5 .
  ?x2 ns:film.director.film M5
  }