Did a screenwriter influence a Canadian cinematographer and influence M1 's female star 's child
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced ?x2 .
?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x3 .
?x2 a ns:film.cinematographer .
?x2 ns:people.person.nationality ns:m.0d060g .
?x3 ns:film.actor.film/ns:film.performance.film M1 .
?x3 ns:people.person.gender ns:m.02zsn
}