Was M2 written by a Canadian parent of a screenwriter , produced by M3 and M4 , and edited by M5
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.writer .
M2 ns:film.film.edited_by M5 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M2 ns:film.film.written_by ?x0
}