Were M2 and M5 produced by a film producer 's Canadian parent , written by M3 , and directed 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 .
?x0 ns:people.person.nationality ns:m.0d060g .
?x1 a ns:film.producer .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.written_by M3 .
M5 ns:film.film.directed_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.written_by M3
}