Were M2 , M4 , M5 , and M6 directed by a screenwriter 's child 's male child and written by M3
SELECT count(*) WHERE {
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 .
?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x2 .
?x2 a ns:film.writer .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.written_by M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.written_by M3 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.written_by M3 .
M6 ns:film.film.directed_by ?x0 .
M6 ns:film.film.written_by M3
}