Was M2 directed by M0 's parent , directed by M1 's actor , and written by M3
SELECT count(*) WHERE {
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M0 .
?x1 ns:film.actor.film/ns:film.performance.character M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.written_by M3
}