Was M1 written by a film director 's child 's child and directed by M2
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 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x2 .
?x2 a ns:film.director .
M1 ns:film.film.directed_by M2 .
M1 ns:film.film.written_by ?x0
}