Was M1 written by M2 and executive produced by M0 's actor 's child
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:film.actor.film/ns:film.performance.character M0 .
M1 ns:film.film.executive_produced_by ?x0 .
M1 ns:film.film.written_by M2
}