Were M2 and M5 written by M3 and M4 and directed by a Swedish screenwriter 's child
SELECT count(*) WHERE {
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 .
?x1 a ns:film.writer .
?x1 ns:people.person.nationality ns:m.0d0vqn .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.written_by M3 .
M5 ns:film.film.written_by M4
}