question: Did a Canadian person executive produce M4 's prequel , write M1 , and write M2
query: SELECT count(*) WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:film.producer.films_executive_produced ?x1 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:people.person.nationality ns:m.0d060g .
  ?x1 ns:film.film.sequel M4
  }