question: Was M2 written , executive produced , and directed by a film 's Canadian cinematographer
query: SELECT count(*) WHERE {
  ?x0 ns:film.cinematographer.film ?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.executive_produced_by ?x0 .
  M2 ns:film.film.written_by ?x0
  }