Were M3 and M5 produced by M4 , edited by M2 's editor , and executive produced by a Swedish screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?x1 ns:film.editor.film M2 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.executive_produced_by ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M4
}