Were M3 and M6 produced by M4 and M5 and edited by a Canadian film editor that produced M2
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x0 ns:film.producer.film|ns:film.production_company.films M2 .
?x0 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M5 .
M6 ns:film.film.edited_by ?x0 .
M6 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M6 ns:film.film.produced_by|ns:film.film.production_companies M5
}