Were M3 and M4 written by a producer of M0 and written by a Swedish cinematographer
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x1 a ns:film.cinematographer .
?x1 ns:people.person.nationality ns:m.0d0vqn .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x1 .
M4 ns:film.film.written_by ?x0 .
M4 ns:film.film.written_by ?x1
}