Were M3 and M4 written by a cinematographer 's parent and edited by a female child of M2
SELECT count(*) WHERE {
?x0 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x1 .
?x1 a ns:film.cinematographer .
?x2 ns:people.person.gender ns:m.02zsn .
?x2 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent M2 .
M3 ns:film.film.edited_by ?x2 .
M3 ns:film.film.written_by ?x0 .
M4 ns:film.film.edited_by ?x2 .
M4 ns:film.film.written_by ?x0
}