Was M3 produced by M1 's Swedish executive producer 's child and written by a film director
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x2 .
?x2 ns:film.producer.films_executive_produced M1 .
?x2 ns:people.person.nationality ns:m.0d0vqn .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0
}