Was M1 written by M2 , produced by M3 and M4 , and produced by a cinematographer '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 ?x1 .
?x1 a ns:film.cinematographer .
M1 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M1 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M1 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M1 ns:film.film.written_by M2
}