question: Was M3 written by M0 's star and directed by M1 's Canadian employee
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.film M0 .
  ?x1 ns:people.person.employment_history/ns:business.employment_tenure.company M1 .
  ?x1 ns:people.person.nationality ns:m.0d060g .
  M3 ns:film.film.directed_by ?x1 .
  M3 ns:film.film.written_by ?x0
  }