Was M1 executive produced by M2 , written by M3 , produced by M4 , and executive produced by a screenwriter 's parent
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.writer .
M1 ns:film.film.executive_produced_by ?x0 .
M1 ns:film.film.executive_produced_by M2 .
M1 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M1 ns:film.film.written_by M3
}