Was M3 directed by M4 and written by a female Canadian costume designer 's child
SELECT count(*) WHERE {
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 .
?x1 a ns:film.film_costumer_designer .
?x1 ns:people.person.gender ns:m.02zsn .
?x1 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.directed_by M4 .
M3 ns:film.film.written_by ?x0
}