question: Was M2 written by M3 , edited by a actor , and directed by M1 's art director , director , and cinematographer
query: SELECT count(*) WHERE {
  ?x0 a ns:film.actor .
  ?x1 ns:film.cinematographer.film M1 .
  ?x1 ns:film.director.film M1 .
  ?x1 ns:film.film_art_director.films_art_directed M1 .
  M2 ns:film.film.directed_by ?x1 .
  M2 ns:film.film.edited_by ?x0 .
  M2 ns:film.film.written_by M3
  }