Were M3 and M5 produced by M2 's Canadian star , executive produced by a film editor , and written by M4
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by M4 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M5 ns:film.film.written_by M4
}