Were M3 , M5 , and M6 produced by a male Canadian screenwriter 's parent and edited by M4
SELECT count(*) WHERE {
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 .
?x1 a ns:film.writer .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.edited_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.edited_by M4 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}