Did a Swedish film producer write M1 and write a prequel of M3
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M1 .
?x0 ns:people.person.nationality ns:m.0d0vqn .
?x1 ns:film.film.sequel M3
}