Was a film director that M0 was executive produced by and was directed by a screenwriter 's child 's parent
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.producer.films_executive_produced M0 .
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?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
}