Was M2 written by M3 and written by a Swedish writer of M1 's prequel
SELECT count(*) WHERE {
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?x1 ns:film.film.sequel M1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3
}