Did M3 and M5 star a Swedish screenwriter that M1 influenced and star M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:people.person.nationality ns:m.0d0vqn .
M3 ns:film.film.starring/ns:film.performance.actor ?x0 .
M3 ns:film.film.starring/ns:film.performance.actor M4 .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor M4
}