Was a parent of M0 a film 's art director , writer , and star
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.film_art_director.films_art_directed ?x1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child M0 .
?x1 a ns:film.film
}