question: Was M3 edited by and written by a Canadian costume designer that M2 starred
query: SELECT count(*) WHERE {
  ?x0 a ns:film.film_costumer_designer .
  ?x0 ns:film.actor.film/ns:film.performance.film M2 .
  ?x0 ns:people.person.nationality ns:m.0d060g .
  M3 ns:film.film.edited_by ?x0 .
  M3 ns:film.film.written_by ?x0
  }