Was M2 executive produced by M0 's parent and written by M1 's writer , costume designer , and star
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.film M1 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x1
}