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