Was M3 executive produced by M4 and M5 and written by a Canadian screenwriter that M2 was directed by
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.director.film M2 .
?x0 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.executive_produced_by M4 .
M3 ns:film.film.executive_produced_by M5 .
M3 ns:film.film.written_by ?x0
}