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