question: Were M2 and M3 written by and directed by a art director that M1 's sequel was edited by and written by
query: SELECT count(*) WHERE {
  ?x0 a ns:film.film_art_director .
  ?x0 ns:film.editor.film ?x1 .
  ?x0 ns:film.writer.film ?x1 .
  ?x1 ns:film.film.prequel M1 .
  M2 ns:film.film.directed_by ?x0 .
  M2 ns:film.film.written_by ?x0 .
  M3 ns:film.film.directed_by ?x0 .
  M3 ns:film.film.written_by ?x0
  }