question: Were M2 and M5 written by M3 , directed by M4 , and edited by a screenwriter that M1 was written by
query: SELECT count(*) WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:film.writer.film M1 .
  M2 ns:film.film.directed_by M4 .
  M2 ns:film.film.edited_by ?x0 .
  M2 ns:film.film.written_by M3 .
  M5 ns:film.film.directed_by M4 .
  M5 ns:film.film.edited_by ?x0 .
  M5 ns:film.film.written_by M3
  }