Were M2 , M3 , and M4 executive produced and written by a Canadian writer of a film 's prequel
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.nationality ns:m.0d060g .
?x1 ns:film.film.sequel ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.written_by ?x0
}