Did a Canadian film producer employed by M3 produce M5 and write M1 and M2
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.producer.film|ns:film.production_company.films M5 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M3 .
?x0 ns:people.person.nationality ns:m.0d060g
}