Did M4 star a Canadian person that wrote M2 and edited M1
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.editor.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:people.person.nationality ns:m.0d060g .
M4 ns:film.film.starring/ns:film.performance.actor ?x0
}