question: Was M3 written by a Canadian cinematographer that M1 was written by and was edited by
query: SELECT count(*) WHERE {
  ?x0 a ns:film.cinematographer .
  ?x0 ns:film.editor.film M1 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:people.person.nationality ns:m.0d060g .
  M3 ns:film.film.written_by ?x0
  }