question: Was M1 written by M2 and directed by M0 's director , costume designer , star , producer , and cinematographer
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.film M0 .
  ?x0 ns:film.cinematographer.film M0 .
  ?x0 ns:film.director.film M0 .
  ?x0 ns:film.film_costumer_designer.costume_design_for_film M0 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M0 .
  M1 ns:film.film.directed_by ?x0 .
  M1 ns:film.film.written_by M2
  }