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