question: Did M2 star a film 's writer and cinematographer and star M1 's costume designer
query: SELECT count(*) WHERE {
  ?x0 ns:film.cinematographer.film ?x1 .
  ?x0 ns:film.writer.film ?x1 .
  ?x1 a ns:film.film .
  ?x2 ns:film.film_costumer_designer.costume_design_for_film M1 .
  M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
  M2 ns:film.film.starring/ns:film.performance.actor ?x2
  }