Was M1 written by a child of a film director , directed by M3 , M4 , and M5 , and written by M2
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.director .
M1 ns:film.film.directed_by M3 .
M1 ns:film.film.directed_by M4 .
M1 ns:film.film.directed_by M5 .
M1 ns:film.film.written_by ?x0 .
M1 ns:film.film.written_by M2
}