Was M3 written by a character and produced by M2 's male child
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M2 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0
}