Was M0 's prequel edited by a Canadian film producer that directed M5 and written by M1 and M2
SELECT count(*) WHERE {
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.sequel M0 .
?x0 ns:film.film.written_by M1 .
?x0 ns:film.film.written_by M2 .
?x1 a ns:film.producer .
?x1 ns:film.director.film M5 .
?x1 ns:people.person.nationality ns:m.0d060g
}