Did a Canadian film director write M1 and M2 and produce M4 and M5
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:film.producer.film|ns:film.production_company.films M4 .
?x0 ns:film.producer.film|ns:film.production_company.films M5 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:people.person.nationality ns:m.0d060g
}