Was M3 executive produced by a Swedish person , edited by M4 , and written by a actor of M2
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?x1 ns:film.actor.film/ns:film.performance.character M2 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1
}