Was M3 produced by a art director and producer of M1 and M2 and written by M0 '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 M0 .
?x1 ns:film.film_art_director.films_art_directed M1 .
?x1 ns:film.film_art_director.films_art_directed M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0
}