question: Was M0 's director a film 's prequel 's cinematographer and writer
query: SELECT count(*) WHERE {
  ?x0 ns:film.cinematographer.film ?x1 .
  ?x0 ns:film.director.film M0 .
  ?x0 ns:film.writer.film ?x1 .
  ?x1 ns:film.film.sequel ?x2 .
  ?x2 a ns:film.film
  }