Were M4 , M5 , and M6 written by a cinematographer and directed by a Canadian director of M2 and M3
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x1 ns:film.director.film M2 .
?x1 ns:film.director.film M3 .
?x1 ns:people.person.nationality ns:m.0d060g .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.directed_by ?x1 .
M6 ns:film.film.written_by ?x0
}