question: Was M2 written by a film director and written by M1 's star , executive producer , cinematographer , art director , and editor
query: SELECT count(*) WHERE {
  ?x0 a ns:film.director .
  ?x1 ns:film.actor.film/ns:film.performance.film M1 .
  ?x1 ns:film.cinematographer.film M1 .
  ?x1 ns:film.editor.film M1 .
  ?x1 ns:film.film_art_director.films_art_directed M1 .
  ?x1 ns:film.producer.films_executive_produced M1 .
  M2 ns:film.film.written_by ?x0 .
  M2 ns:film.film.written_by ?x1
  }