Were M3 and M4 edited by a film producer and written by a Canadian actor that played M1
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.character M1 .
?x0 ns:people.person.nationality ns:m.0d060g .
?x1 a ns:film.producer .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.written_by ?x0
}