Were M2 and M5 produced by a Canadian employee of M0 , written by M3 , and edited by M4
SELECT count(*) WHERE {
?x0 ns:people.person.employment_history/ns:business.employment_tenure.company M0 .
?x0 ns:people.person.nationality ns:m.0d060g .
M2 ns:film.film.edited_by M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.written_by M3 .
M5 ns:film.film.edited_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.written_by M3
}