Was M2 edited by a screenwriter , directed by M3 , and executive produced by a child of M0
SELECT count(*) WHERE {
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M0 .
?x1 a ns:film.writer .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0
}