question: Was a film director that M4 and M5 starred and M1 , M2 , and M3 were written by M6 's cinematographer
query: SELECT count(*) WHERE {
  ?x0 a ns:film.director .
  ?x0 ns:film.actor.film/ns:film.performance.film M4 .
  ?x0 ns:film.actor.film/ns:film.performance.film M5 .
  ?x0 ns:film.cinematographer.film M6 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3
  }