Was M2 written by and directed by a film 's Canadian producer
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x0 ns:people.person.nationality ns:m.0d060g .
?x1 a ns:film.film .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by ?x0
}