question: Was M2 written by a film 's star , director , costume designer , editor , and art director and produced by a cinematographer
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
  ?x0 ns:film.director.film ?x1 .
  ?x0 ns:film.editor.film ?x1 .
  ?x0 ns:film.film_art_director.films_art_directed ?x1 .
  ?x0 ns:film.film_costumer_designer.costume_design_for_film ?x1 .
  ?x1 a ns:film.film .
  ?x2 a ns:film.cinematographer .
  M2 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
  M2 ns:film.film.written_by ?x0
  }