Was M3 written by a cinematographer and directed by a person 's Canadian parent
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 .
?x1 ns:people.person.nationality ns:m.0d060g .
?x2 a ns:people.person .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.written_by ?x0
}