question: Were M4 and M6 written by a cinematographer that M1 , M2 , and M3 were played by and directed by M5
query: SELECT count(*) WHERE {
  ?x0 a ns:film.cinematographer .
  ?x0 ns:film.actor.film/ns:film.performance.character M1 .
  ?x0 ns:film.actor.film/ns:film.performance.character M2 .
  ?x0 ns:film.actor.film/ns:film.performance.character M3 .
  M4 ns:film.film.directed_by M5 .
  M4 ns:film.film.written_by ?x0 .
  M6 ns:film.film.directed_by M5 .
  M6 ns:film.film.written_by ?x0
  }