Was M0 's prequel written by M1 and M2 , produced by M6 , and written by M3 , M4 , and M5
SELECT count(*) WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies M6 .
?x0 ns:film.film.sequel M0 .
?x0 ns:film.film.written_by M1 .
?x0 ns:film.film.written_by M2 .
?x0 ns:film.film.written_by M3 .
?x0 ns:film.film.written_by M4 .
?x0 ns:film.film.written_by M5
}