Was M3 executive produced by and written by a Canadian actor that executive produced M1
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:people.person.nationality ns:m.0d060g .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x0
}