Was M5 's sequel 's prequel written by M0 , M1 , M2 , and M3 and written by M4
SELECT count(*) WHERE {
?x0 ns:film.film.sequel ?x1 .
?x0 ns:film.film.written_by 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 .
?x1 ns:film.film.prequel M5
}