Was M1 's Canadian writer 's gender M0 's gender
SELECT count(*) WHERE {
?x0 ^ns:people.person.gender ?x1 .
?x0 ^ns:people.person.gender M0 .
?x1 ns:film.writer.film M1 .
?x1 ns:people.person.nationality ns:m.0d060g
}