Were M3 and M4 written by a film editor and produced by a Swedish screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x1 a ns:film.writer .
?x1 ns:people.person.nationality ns:m.0d0vqn .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.written_by ?x0
}