Were M3 and M6 written by a Canadian male screenwriter , edited by M4 , and directed by M5
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.directed_by M5 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.written_by ?x0 .
M6 ns:film.film.directed_by M5 .
M6 ns:film.film.edited_by M4 .
M6 ns:film.film.written_by ?x0
}