Was M2 executive produced by M3 , written by M0 's parent , and directed by M1 's director
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.director.film M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.executive_produced_by M3 .
M2 ns:film.film.written_by ?x0
}