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